Top 5 ?
#1

Hey , I'm looking for a tutorial or code getting top 5 players with the best amount in a variable like 'Kills' so the first is for ex 10000kills second 9000 Kills....

I already know how to get the Top player but not top 5 or 4...


thank you
Reply
#2

here is a psedu code to start with :
Quote:

Array players[MAX_PLAYERS]
Sort players with key=kills
Top 5 first cell of your array would be biggest ones.
Least 5 cell of your array would be smallest ones.

Reply
#3

http://pastebin.com/XAJS8nqK

Here is something
Reply
#4

Thank you ! gonna try it

EDIT : works amazing ! thanks again +rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)