Random ID
#6

Quote:
Originally Posted by ~MaVe
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

you can but it ain't the best way
just check if the player is connected if not call the function again
that would help the problem.
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: 3 Guest(s)