05.06.2011, 16:52
Thank you cyberghost, but if anyone or you can help me turn this command in strcmp it would be great!
pawn Код:
COMMAND:scoreboard(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
new string[1337];
format(string, sizeof(string), "%s \t %d", PlayerName(i), GetPlayerScore(i));
ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, " {FF0000}Name Score", string, "Okai", "");
}
return 1;
}
stock PlayerName(playerid)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
return name;
}