I have some code. It's sapose to get all the players in server. Like, say theres 4 people in server. I want it to equal 4. But it always get's the highest userid. Like, say theres 4 people in a server....
userid 1 "player1"
userid 2 "player2"
userid 3 "playe3"
userid 4 "player4"
then the 2nd player leaves and rejoins. It is now...
userid 1 "player1"
userid 3 "playe3"
userid 4 "player4"
userid 5 "player2"
and my varable ='s 5. Not 4. Because 5 is the highest userid.
Here's the code...
Code:
new players[32], num
get_players(players,num);
for(new i=0;i<num;i++) {
predators = players[i]
__________________