Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script help (complex script) SOLVED
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Script help (complex script)

Yes, as JustAnotherPlayer said, the curly braces are missing in your if-statements. There might be something else wrong here but I do not want to dedicate time to analyse the script if this is the only problem. Fix it, then if it's still not working I can take a closer look.

If-statements do not need the curly braces if you only have 1 function following it, but as soon as you have multiple, you'll need to add the block to surround those. You might already know this but forgot.

Example:
if(a == b) RunScript();
if(a == b) {
    RunScript();
    RunAnotherScript();
}

02-19-2014, 01:08 PM
Find


Messages In This Thread
Script help (complex script) SOLVED - by Neelke - 02-19-2014, 10:24 AM
RE: Script help (complex script) - by Traggey - 02-19-2014, 12:42 PM
RE: Script help (complex script) - by Mudbill - 02-19-2014, 01:08 PM
RE: Script help (complex script) - by Daemian - 02-19-2014, 03:18 PM
RE: Script help (complex script) - by Neelke - 02-19-2014, 03:33 PM



Users browsing this thread: 4 Guest(s)