06.06.2016, 15:57
Never use return in loops unless intended to (same goes for cuzido's code). It will stop on the first iterator and it won't loop through the rest of the players.
Another recommendation is using foreach but if you don't want to, at least use the pool size added in 0.3.7
Another recommendation is using foreach but if you don't want to, at least use the pool size added in 0.3.7
pawn Код:
foreach(new i : Player)
// or
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)