Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Basse_Berlin on Wed 11/02/2009 17:42:46

Title: Expected '('
Post by: Basse_Berlin on Wed 11/02/2009 17:42:46
Just started scripting a small game. In a large chunck of contitions the message board tells me it's an error.

GlobalScript.asc(181): Error (line 181): expected '('

I've tried to go through my script looking for a missing (, but i can't find one. And certainly not on line 181 wich looks like this:

  if else (player.ActiveInventory==iLysstring)

How can i sole this? What shall i be looking for in the script?

Thanks on beforehand.
Title: Re: Expected '('
Post by: DoorKnobHandle on Wed 11/02/2009 17:43:58
"if else" doesn't exist, did you mean "else if"?
Title: Re: Expected '('
Post by: Matti on Wed 11/02/2009 17:45:51
Yeah, the script is looking for a bracket after the "if"...
Title: Re: Expected '('
Post by: Basse_Berlin on Wed 11/02/2009 17:49:18
Yeah, that's what i meant. It seemed to do the trick too. Thanx alot!