05.06.2011, 17:22
Quote:
here is the warning :
pawn Код:
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("scoreboard", cmdtext[1], true, 10))
{
new sbstring[2048], strline[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (!IsPlayerConnected(i)) continue;
format(strline, sizeof(strline), "%s \t %d\n", PlayerName(i), GetPlayerScore(i));
strcat(sbstring, strline);
}
ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, " {FF0000}Name Score", sbstring, "Okai", "");
return 1;
}
return 0;
}
stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
return name;
}
Quote:
This forum requires that you wait 120 seconds between posts. Please try again in 42 seconds. |