03.03.2012, 21:22
Quote:
Tente Este:
if(!strcmp(cmdtext, "/rank", true)) { new Scor[MAX_PLAYERS], string[128], Nome[24] ; for(new i; i != MAX_PLAYERS; ++i) Scor[i] = GetPlayerScore(i); BubbleSort(Scor, sizeof(Scor)); for(new i; i != 10; i++) { GetPlayerName(playerid, Nome, 24); format(string, sizeof(string),"NЄ %i Nome: %s Level: %d", i+1, Nome, Scor[i]); SendClientMessage(playerid, -1, string); } return 1; }[/pawn] |
Tenta assim:
PHP код:
if(!strcmp("/rank", cmdtext, true))
{
new
Scor[MAX_PLAYERS],
string[128],
Nome[24]
;
for(new i; i != MAX_PLAYERS; ++i) Scor[i] = GetPlayerScore(i);
BubbleSort(Scor, sizeof(Scor));
for(new i; i != 10; i++)
{
GetPlayerName(playerid, Nome, 24);
format(string, sizeof(string),"NЄ %i Nome: %s Level: %d", i+1, Nome, Scor[i]);
SendClientMessage(playerid, -1, string);
}
return 1;
}