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 / What's wrong with my script?

Author
Message
sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 7th Nov 2007 23:09
I made a custom script (My very first one) and it's supposed to be like a teleporter that goes to location 1, then location 2 and so on, all the way up to location 8 but it always ends up at location 8, every time I go in the teleporter. Could someone point out what I did wrong.

Here's the code:
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 8th Nov 2007 01:48
Okay, when programming ANYTHING, the programmer must ALWAYS be aware of something called "Order of Operation".

Try this out instead: (All I did was rearrange your code)



Let me know if that works. Sometimes when something seems so simple and yet is being a big problem, you could always just look at it "backwards" for an answer.


The one and only,
~PlystirE~

sps999
17
Years of Service
User Offline
Joined: 23rd Oct 2007
Location: On my Computer
Posted: 10th Nov 2007 16:01
It works now... except it skips Location_5 and Location_8

Login to post a reply

Server time is: 2024-11-24 01:52:29
Your offset time is: 2024-11-24 01:52:29