Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PsychicHeart on Thu 24/11/2005 07:09:41

Title: Main Menu Script Problem
Post by: PsychicHeart on Thu 24/11/2005 07:09:41
hey,
i have a GUI that opens when you press the Escape key, which pauses the game and comes up with objects like Save, Load etc.
I made one for Main Menu but it isn't working. i get the message: Parse error at '0', but the number 0 isn't used in the whole line!!
This is what i have under

function Load_Click(GUIControl *control, MouseButton button):
{ STEWIE.ChangeRoom (303, 999, 999);

is this what i should be putting?
Thanks in advance,
Fb.
Title: Re: Main Menu Script Problem
Post by: Gilbert on Thu 24/11/2005 07:16:02
You missed a closing brace, unless it's just you didn't copy enough codes from your script here:

function Load_Click(GUIControl *control, MouseButton button):
{ STEWIE.ChangeRoom (303, 999, 999);}
Title: Re: Main Menu Script Problem
Post by: PsychicHeart on Thu 24/11/2005 07:21:51
I tried that, it just says the same thing Parse Error at 0.
Title: Re: Main Menu Script Problem
Post by: Scummbuddy on Thu 24/11/2005 07:35:47
could it be the colon at the end of your function line?
Title: Re: Main Menu Script Problem
Post by: PsychicHeart on Thu 24/11/2005 07:43:48
there isn't a colon at the end of the function line, that's just opening what i have UNDER the function line.
Title: Re: Main Menu Script Problem
Post by: PsychicHeart on Thu 24/11/2005 07:54:08
Problem Solved: I put Stewie where i should have put cStewie.
Title: Re: Main Menu Script Problem
Post by: monkey0506 on Fri 25/11/2005 00:33:11
Too bad you got it figured out.  I had noticed that, but I'd just like to post a reminder:

STEWIE is the equivalent of cStewie.ID!

Don't confuse them. ;)