|
Author
|
Message
|
|
Senior Member
|

12-30-2010
, 05:12
Most efficiently get all user ids
|
#1
|
Hi,
I'd like to know how I can fill an array[32] containing valid user ids.
Since this code is to be implemented in a callback initialized using set_task(), I need the most efficient way to do this.
Would it be faster to... use get_players(), get the highest user ID. On each disconnect, update the table instead of re-using get_players() to re-fill it, using a list of empty indexes (lookup table). On each player connect, consult the lookup table, fill the element corresponding to the retrieved index, delete the index, go to next.
Or... simply use get_players() on each iteration?
Please advise! Thanks!
Misery
|
|
|
|