SA-MP Forums Archive
[HELP] Top 5 Highscore (Kills) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Top 5 Highscore (Kills) (/showthread.php?tid=267382)



[HELP] Top 5 Highscore (Kills) - Rolyy - 08.07.2011

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?


Re: [HELP] Top 5 Highscore (Kills) - Rolyy - 08.07.2011

Bump (Almost 3rd page)


Re: [HELP] Top 5 Highscore (Kills) - Rolyy - 26.07.2011

Bump, still inneed of this.


Re: [HELP] Top 5 Highscore (Kills) - PrawkC - 26.07.2011

"I already have an basic knownledge of pawno scripting"

... No you don't.

Also, search.. I have seen this asked numerous times.


Re: [HELP] Top 5 Highscore (Kills) - Donya - 26.07.2011

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


Re: [HELP] Top 5 Highscore (Kills) - AndreT - 26.07.2011

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.