Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: funnyboy044 on Fri 07/07/2017 22:36:19

Title: (SOLVED)GUI help-"expected semicolon after )"
Post by: funnyboy044 on Fri 07/07/2017 22:36:19
I'm trying to make a basic "Are you sure you want to quit?" GUI for the first time. I've made the GUI, but now I have an issue coding it.
CODE:
Code (ags) Select

function room_FirstLoad()
{
QUITGUI.Visible = true;
}


On line 3, I get an error that says "expected semicolon after )" I checked if there were spots in previous lines where I forgot semicolons and tried to make QUITGUI.Visible a global variable. but to no such luck. Please help!
Title: Re: GUI help-"expected semicolon after )"
Post by: Mandle on Sat 08/07/2017 02:35:01
Hmmmmm.... perhaps AGS means line 3 of a different script?
Title: Re: GUI help-"expected semicolon after )"
Post by: funnyboy044 on Sat 08/07/2017 04:29:31
I figured it out. I had it written incorrectly. I should've written it as "gQUITGUI.Visible".

Thanks for trying to help anyway.