08.07.2011, 11:06
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:
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?
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;