04.03.2015, 13:18
Quote:
@Jimmy:
- His code has proper indentation - The 'random words' like "goto" and "do" are valid functions. https://sampwiki.blast.hk/wiki/Control_Structures#do-while @Xysiaris: You forgot to add the IsPlayerConnected(i) function. |
pawn Code:
new i;
i = 0;
loop:
if(i > MAX_PLAYERS) goto loop_stop;
if(something == 1 && isPlayerConnected(i) == 1)
{
//do something
i++;
goto loop;
}
else
{
i++;
goto loop;
}
loop_stop:
//do something
return 1;