Quick question about a loop
#3

Returning a value stops the whole callback. Example:
pawn Код:
OnPlayerEnterInterior([...])
{
if(Bleh==32)return 1;
print("Won't printed if Bleh=32.");
return 1;
}
pawn Код:
OnPlayerEnterInterior([...])
{
if(Bleh==32)return 1;
else return 0;
print("Won't printed (never).");
return 1;
}
Reply


Messages In This Thread
Quick question about a loop - by Celson - 01.10.2010, 18:21
Re: Quick question about a loop - by Ash. - 01.10.2010, 18:22
Re: Quick question about a loop - by DeathOnaStick - 01.10.2010, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)