Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 02/03/2004 13:58:46

Title: Can't work dialog request
Post by: on Tue 02/03/2004 13:58:46
In my global script, I have this line:

function dialog_request (1);
  ObjectOff (8);
  ObjectOff (9);

But when I run the game, I get this error message:

Error (line 43); PE03:  Parse error at '1'


What do I do?
Title: Re:Can't work dialog request
Post by: on Tue 02/03/2004 14:06:01
try this.
function dialog_request (int r) {
 if (r==1){
 ObjectOff (8);
 ObjectOff (9);
 }
}

?????????????????????????