18.02.2012, 10:45
Hi, this question is about "if" statements in "for" loops. So I've seen people doing it these ways:
Way 1
Way 2
So my question is, which way is better?
Way 1
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
Kick(i);
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
if(!IsPlayerConencted(i))
continue;
Kick(i);