13.04.2014, 16:25
I've tried a couple of different formatting things, but sadly none of them worked. How can I make this command:
Include more stats? Such as an admin level? If anyone has a suggestion that requires just scrapping this dialog idea, that's fine, I just want to be able to display a large amount of stats for the player.
Код:
CMD:stats(playerid, params[]) { if(IsPlayerConnected(playerid)) { new money = PlayerInfo[playerid][pCash]; new deaths = PlayerInfo[playerid][pDeaths]; new kills = PlayerInfo[playerid][pKills]; new crack = PlayerDrugInfo[playerid][pCrack]; new string1[128],stats[1050]; format(string1, sizeof string1, "{44A1D0}Money: {FFFFFF}[$%d] {44A1D0}Deaths: {FFFFFF}[%d] {44A1D0}Kills: {FFFFFF}[%d] {44A1D0}Crack: {FFFFFF}[%d]", money,deaths,kills,crack); format(stats, sizeof stats, "%s", string1); ShowPlayerDialog(playerid,102,DIALOG_STYLE_MSGBOX,""COL_BLUE"Your account:",stats,"Ok",""); return 1; } return 1; }