Quote:
Originally Posted by Arthur Kane
PHP код:
CMD:stats(playerid, params[])
{
new string[500], title[32], playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(playerName));
format(title, sizeof(title), "%s", playerName);
format(string,sizeof(string),"[General] - [Money: %d] | [Deaths: %d] | [Kills: %d] | [Score: %d] | [Admin
Level: %d]",PlayerInfo[playerid][pCash],PlayerInfo[playerid][pDeaths],PlayerInfo[playerid]
[pKills],PlayerInfo[playerid][pScore],PlayerInfo[playerid][pAdmin]);
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, title, string, "kill", "");
return true;
}
I recommend making a return name function.
|
oh i see didn't think of making it this way! thanks