20.08.2010, 22:29
I think it doesn't really matter. Even you do an itteration of 20000 you will probably only notice a difference of 1 or 2 milliseconds.
Correct me if I'm wrong, but basically doing
is the same as
Correct me if I'm wrong, but basically doing
pawn Code:
foreach(Player, i)
{
// Do something here if they're connected
}
pawn Code:
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
// Do something here if they're connected
}