[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


Messages In This Thread
[HELP] Top 5 Highscore (Kills) - by Rolyy - 08.07.2011, 11:06
Re: [HELP] Top 5 Highscore (Kills) - by Rolyy - 08.07.2011, 15:17
Re: [HELP] Top 5 Highscore (Kills) - by Rolyy - 26.07.2011, 17:57
Re: [HELP] Top 5 Highscore (Kills) - by PrawkC - 26.07.2011, 18:34
Re: [HELP] Top 5 Highscore (Kills) - by Donya - 26.07.2011, 19:14
Re: [HELP] Top 5 Highscore (Kills) - by AndreT - 26.07.2011, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)