Hello,
I was trying to run this script, but I keep getting this error no matter what I do or change.
GlobalScript.asc(616): Error (line 616): Variable 'dialog_request' is already defined
and the script:
Code: ags
I was trying to run this script, but I keep getting this error no matter what I do or change.
GlobalScript.asc(616): Error (line 616): Variable 'dialog_request' is already defined
and the script:
function dialog_request(int parameter)
if
(parameter==1)
(player.HasInventory(iPapierosy))
(player.LoseInventory(iPapierosy))
{
cEgo.Say("Something something");
cBabcia.Say("yes.");
}
else
{
cEgo.Say("Bye");
}