Quote:
|
Originally Posted by Cuecumber
Use:
pawn Код:
for(new i, x = GetMaxPlayers(); i < x; i++) // Code.
The result returned by GetMaxPlayers() will not change inbetween such a tiny loop like that (unless you change it manually), so there is no point in calling it on every iteration of the loop. Assign it to a variable, and compare it to that, instead of calling the function repeatedly for every iteration of the loop.
|
I never thought about this, but I see that it's much better

thanks for the code ^^