26.01.2015, 12:53
Quote:
I have no idea what you wrote in that code.
Sorting an array which contains all players with quicksort would be a good idea: http://forum.sa-mp.com/showpost.php?...postcount=1737 |
So if you want to store the names is quite simple.. Create an other global variable such us:
pawn Код:
new Ranking[3];// arrays contained are 0 1 2
pawn Код:
switch(win)
{
new name[24];
GetPlayerName(playerid,name,sizeof name);
case 0:
{
win++;
Ranking[0] = name;
//player has won the race
}
case 1:
{
win++;
Ranking[1] = name;
//player is second
}
case 2:
{
win++;
Ranking[2] = name;
//player is third
}
}