Getting the highest ID
#4

Maybe this will help:
pawn Код:
stock GetHighestID()
{
  new highestID = -1;
  for(new i = 0; i < MAX_PLAYERS; i++) highestID = i;
  return highestID;
}
Return the highest ID, or -1 if there are no highest ID (0 online players).
Example:
pawn Код:
new HighestID = GetHighestID();
Reply


Messages In This Thread
Getting the highest ID - by [LL]InstabiC - 26.09.2009, 08:26
Re: Getting the highest ID - by Zeex - 26.09.2009, 08:43
Re: Getting the highest ID - by Sznupek - 26.09.2009, 08:49
Re: Getting the highest ID - by Amit_B - 26.09.2009, 10:50
Re: Getting the highest ID - by ev0lution - 28.09.2009, 20:59

Forum Jump:


Users browsing this thread: 1 Guest(s)