Ranking System
#1

Yeah, I'm pretty friggen stumped on how to do this, originally I was trying something like this:

pawn Код:
new
TopPlayers[6]; //5 top players

for(new i = 0; i < global_ConnectedPlayers; i++) {

if(PVar[i][Kills] > PVar[i][Kills]) {
TopPlayers[0] = i; }
else if(PVar[i][Kills] > PVar[i][Kills] && PVar[i][Kills] < TopPlayers[0]) {
TopPlayers[1] = i; }

}
Excuse the indentation, wrote it in Opera. Now, of course, this did not work whatsoever, so I'm wondering how I would go about doing it in the simplest way possible.
Reply
#2

you can use QuickSort (somewhere on this forum).
the name says it all..
But maybe I'm wrong xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)