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
Need help with my script!!!!!
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#4
RE: Need help with my script!!!!!

(05-05-2013, 04:58 PM)MrNord94 Wrote: Hi. I'm new to this level editor, and I'm having problems understanding what can be wrong with my script-code. Can anyone please tell me, it would be great if someone could Big Grin

errors:
main (13,6) ERR: Expected "("
main (21,6) ERR: Expected "("
main (29,6) ERR: Expected "("
main (35,6) ERR: Expected "("
main (47,6) ERR: Expected "("
Smoke and Mr Credits have already explained what's wrong with your script, so I won't parrot them Smile I'm just going to add something:

Those numbers in brackets ((13,6) for example) tell you where in your script the error is. If you're using Notepad++, the bottom of your window tells you what line and column you're in. The bracketed numbers correspond with this. The 13 tells you that it's line 13 and the 6 tells you that it's the 6th column in the line.

Your errors are at:
Line 13, column 6
Line 21, column 6
Line 29, column 6
Line 35, column 6
and line 47, column 6

Just checked in Notepad++, column 6 is one letter/character past a TAB space. So it'll probably be the first or second character of the line which needs to be fixed.

The part that comes after the coordinates tells you what's wrong with that spot. "Expected "("" means it's missing a ( - as Smoke already said.

If you're missing a closing bracket "}", or a semicolon ";" in one of your statements, it'll just give you the coordinates for the last character in your script and say "unexpected end of file" which is really super not useful! Took me forever to figure out that the end of the file was not where the error actually was the first time this happened to me!

Edit: I second Smoke's statement below

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 05-06-2013, 02:10 AM by CarnivorousJelly.)
05-06-2013, 02:04 AM
Find


Messages In This Thread
Need help with my script!!!!! - by MrNord94 - 05-05-2013, 04:58 PM
RE: Need help with my script!!!!! - by Tomato Cat - 05-05-2013, 05:39 PM
RE: Need help with my script!!!!! - by CarnivorousJelly - 05-06-2013, 02:04 AM



Users browsing this thread: 1 Guest(s)