03.02.2011, 07:50
I really forget to add this
pawn Код:
stock HighestTopList(const playerid, const Valuez, Player_ID[], Top_Score[], Loop) // Created by Phento
{
new
t = 0,
p = Loop-1;
while(t <= p) {
if(Valuez >= Top_Score[t]) {
if(Top_Score[t+1] <= 0) p = t+1;
while(p > t) { Top_Score[p] = Top_Score[p - 1]; Player_ID[p] = Player_ID[p - 1]; p--; }
Top_Score[t] = Valuez; Player_ID[t] = playerid;
break;
} t++; }
return 1;
}