[HELP] Top 5 Highscore (Kills)
#1

I already have an basic knownledge of pawno scripting but scripting a top score list is very new for me, and I want to make one myself instead of copying from others.
This is what i've made so far:

pawn Code:
//(Begin of Pawno) New & Enum
    enum pInfo
    {
        pGameKills,
    }
    new PlayerInfo[MAX_PLAYERS][pInfo];

//OnPlayerConnect
    PlayerInfo[playerid][pGameKills] = 0;

//OnPlayerDeath
    PlayerInfo[killerid][pGameKills] = PlayerInfo[killerid][pGameKills] + 1;
But how can I sort out the top 5 numbers by score? I know by using operators such as greater/less/equal but how could I do this by sorting a list?
Reply
#2

Bump (Almost 3rd page)
Reply
#3

Bump, still inneed of this.
Reply
#4

"I already have an basic knownledge of pawno scripting"

... No you don't.

Also, search.. I have seen this asked numerous times.
Reply
#5

Quote:
Originally Posted by Rolyy
View Post
I already have an basic knownledge of pawno scripting
pawno is the compiler, erm ok.

sec i'll edit my post with a top 5 list by RyDeR`

http://forum.sa-mp.com/showpost.php?...postcount=1760
Reply
#6

Quote:
Originally Posted by PrawkC
View Post
"I already have an basic knownledge of pawno scripting"

... No you don't.

Also, search.. I have seen this asked numerous times.
I don't think there's a need to be mean to him. Looking at the code RyDeR has written, it is obvious that PAWN isn't the only thing you need knowledge in to make it work. I bet you wouldn't be able to write such code on the spot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)