semicolon error!

Non-platform specific questions.

semicolon error!

Postby LinuxUser » Thu Jul 21, 2011 8:46 pm

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.
LinuxUser
 
Posts: 2
Joined: Wed Jul 20, 2011 5:12 am
Score: 0 Give a positive score

Re: semicolon error!

Postby jimmynewguy » Thu Jul 21, 2011 9:23 pm

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.
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: semicolon error!

Postby LinuxUser » Fri Jul 22, 2011 10:06 pm

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.
LinuxUser
 
Posts: 2
Joined: Wed Jul 20, 2011 5:12 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest