Quote:
Originally Posted by Xalus
#2 is worse way that I wont recomment.
get_players works like this:
- First it loops trought 32 results, check if they accept with the flags and put it in players[32]. After it did that, you gonna do a loop again, with the amount of results it added to players[32] with the needed flags.
So results in 2 loops, that results in more overlows.
So I recomment #1
|
This is incorrect. There may be two loops but the get_players() loop is done in a module which is much much faster than any looping in AMX Mod X calling is_user_connected() 32 times.
__________________