(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
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
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