Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Compozitor

#1
Thank you very much! It was soo simple... ^) By the way i think it's nowhere documented about placing custom functions before game_start().
Thank you again!
#2
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
function game_start() 
{
  MainMenuGUI(gNewGame);
  cCaptain.SetIdleView(2, 0);
}


and the function itself

Code: AGS
function MainMenuGUI(GUI *theGui)
{
  if (theGui == gNewGame)
  {
  PauseGame();
  gNewGame.Visible = true;
  }
}


When i trying to run game i get:
Code: AGS
GlobalScript.asc(7): Error (line 7): Undefined token 'MainMenuGUI' 


Please help to acknowledge this..
With Best Regards
SMF spam blocked by CleanTalk