Random ID
#5

You can't do something like random(MAX_PLAYERS), as some player slots may be empty, see if there would be these players:
0 1 2 3 4 5 6

then player 2 and 4 disconnect, it looks like that now:
0 1 3 5 6

Reply


Messages In This Thread
Random ID - by Striker_Moe - 04.11.2009, 08:19
Re: Random ID - by Kurence - 04.11.2009, 08:31
Re: Random ID - by saiberfun - 04.11.2009, 11:42
Re: Random ID - by Kurence - 04.11.2009, 12:00
Re: Random ID - by Streetplaya - 04.11.2009, 12:24
Re: Random ID - by saiberfun - 04.11.2009, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)