15.04.2012, 20:16
What happens if I return a value in a loop ? The loop will be ended and script stopped ? Or just the script stopped after the loop is finished ?
public OnPlayerSpawn(playerid)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(i == 5) return 1;
}
print("THIS WILL NEVER BE CALLED.");
return 1;
}
It will stop everything. The callback will no longer carry on.
pawn Код:
|