Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Script Giving Me Error

Author
Message
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 16th Nov 2009 19:15 Edited at: 16th Nov 2009 21:38
Hey, I'm not sure this is due to fault of my own, or due to the fact i'm using Project Green FE mod.

I'm trying to make my own money system, and im not too experienced at scripting, if you could just take a look and see if you can see any obvious problems, i would be very grateful Its actually making the thing crash when i try and run. (im not sure what exactly is crashing, it gives me an array out of bounds error, which makes me think its the mod, although i cant be sure, and then the editor must close)



Thanks in advance...
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 17th Nov 2009 19:35
*BUMP*

Sorry, I don't want to appear selfish and ignorant here But it's annoying me quite a bit now, or do you think i should post on the Project Green Thread?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Nov 2009 23:26
Quote: "huduservar=%Money"


That looks to be your problem.

Placing the "%" in front of the variable gives the command it's VALUE and not the variable itself, which is what the command is looking for. Take the "%" off and it should work fine.


The one and only,


Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 17th Nov 2009 23:56 Edited at: 18th Nov 2009 00:02
ah right, thankyou, my bad, i thought % had to prefix any variable usage ...

I didnt stop to think that the command wanted a variable and not just a value . doh

Login to post a reply

Server time is: 2024-11-25 05:39:33
Your offset time is: 2024-11-25 05:39:33