Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Femme Stab Mode >:D on Sun 12/10/2003 05:59:49

Title: type mismatch - string with non string?
Post by: Femme Stab Mode >:D on Sun 12/10/2003 05:59:49
  // script for room: First time player enters screen
DisplayMessage("We thought that we were all the same");
DisplayMessage("We thought that it was all a game");
DisplayMessage("And then it all became undone");
DisplayMessage("Beneath the rays of scorching sun");
NewRoom (5);
 
}

Save me, o noble script gurus! Every time  try to save this simple script, it gives me the  error message "type mismatch - string with non string"
ARGH!
What did I do wrong?
Title: Re:type mismatch - string with non string?
Post by: scotch on Sun 12/10/2003 09:34:25
DisplayMessage (int message_number);

DisplayMessage takes an int corresponding to a room or  global message, you probably just wanted to use
Display ("Whatever.");