Page 1 of 1

semicolon error!

PostPosted: Thu Jul 21, 2011 8:46 pm
by LinuxUser
So I've been following this tutorial -->http://game-editor.com/Basics_of_a_platformer and so far it seems to have worked except whenever I try running player->Draw Actor->Edit Script I get a "expected semicolon error" on the last line of my code. So I add a semicolon to the last line and then I get a '"expected semicolon error" on the next line. So for example it would say expected semicolon on line 72, I then add a semicolon to line 72, then I get an expected semicolon on line 73, and this will go on forever if I listen to the error messages.

Re: semicolon error!

PostPosted: Thu Jul 21, 2011 9:23 pm
by jimmynewguy
Doesn't always mean that it has to be a semicolon, paste the code here. It's probably an extra bracket from an if statement. Such as this:
Code: Select all
if(variable 1 == 0)
{
variable 2 = 1;
}}

That will give you an expected semi colon error also.

Re: semicolon error!

PostPosted: Fri Jul 22, 2011 10:06 pm
by LinuxUser
Thanks that explains a lot! Sadly for some reason my recent work wasn't saved so I may just keep that in mind when I re-attempt it as it was lines upon lines of code.