04.03.2015, 13:02
So I made a loop to count throguh all the ONLINE players on the server, but it keeps counting to 500 no matter what (I was the only one on the server).
WHAT'S WRONG WITH THIS CODE?!
pawn Code:
new i;
i = 0;
loop:
if(i > MAX_PLAYERS) goto loop_stop;
if(something == 1)
{
//do something
i++;
goto loop;
}
else
{
i++;
goto loop;
}
loop_stop:
//do something
return 1;