27.05.2013, 18:08
pawn Код:
for(new i; i < 5; ++i)
{
if(i < index)
{
GetPlayerName(playerScores[i][player_ID], player_Name, sizeof(player_Name));
format(score_Text, sizeof(score_Text), "%s~n~~b~%d. ~w~%s - ~r~%d", score_Text, i + 1, player_Name, playerScores[i][player_Score]);
}
else
{
format(score_Text, sizeof(score_Text), "%s~n~~b~%d. ~r~N/A", score_Text, i + 1);
}
}
ShowPlayerDialog(playerid, ID DIALOG, DIALOG_STYLE_MSGBOX, "Top Players", score_Text, "OK", "");
return 1;
}