Main Menu Script Problem

Started by PsychicHeart, Thu 24/11/2005 07:09:41

Previous topic - Next topic

PsychicHeart

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.
Formerly known as Flukeblake, Flukezy etc.

Gilbert

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);}

PsychicHeart

I tried that, it just says the same thing Parse Error at 0.
Formerly known as Flukeblake, Flukezy etc.

Scummbuddy

could it be the colon at the end of your function line?
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

PsychicHeart

there isn't a colon at the end of the function line, that's just opening what i have UNDER the function line.
Formerly known as Flukeblake, Flukezy etc.

PsychicHeart

Problem Solved: I put Stewie where i should have put cStewie.
Formerly known as Flukeblake, Flukezy etc.

monkey0506

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. ;)

SMF spam blocked by CleanTalk