Hello. I'm trying to get along with scripting and can't find answer to my problem . I spended 3 hours in internet surfing for it and finally came here for help..
Here is my script.
Code: AGS
and the function itself
Code: AGS
When i trying to run game i get:
Code: AGS
Please help to acknowledge this..
With Best Regards
Here is my script.
function game_start()
{
MainMenuGUI(gNewGame);
cCaptain.SetIdleView(2, 0);
}
and the function itself
function MainMenuGUI(GUI *theGui)
{
if (theGui == gNewGame)
{
PauseGame();
gNewGame.Visible = true;
}
}
When i trying to run game i get:
GlobalScript.asc(7): Error (line 7): Undefined token 'MainMenuGUI'
Please help to acknowledge this..
With Best Regards