08.11.2014, 16:35
Guys My Stats Can't Be saved
I Have 5000 in Money And When i cheack /stats i have Fined 0$ in Money
I Have 5000 in Money And When i cheack /stats i have Fined 0$ in Money
PHP код:
CMD:stats(playerid, params[], help)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new cash = PlayerInfo[playerid][pCash];
new deaths = PlayerInfo[playerid][pDeaths];
new kills = PlayerInfo[playerid][pKills];
new score = PlayerInfo[playerid][pScore];
new skin = PlayerInfo[playerid][pSkin];
new string1[900];
format(string1, sizeof string1, "{F81414} Player Name: {FFFF00}%s \n\n {F81414}General Information: \n\n {FFFF00}Money: {FFFFFF}[$%i] \n {FFFF00}Deaths: {FFFFFF}[%i] \n {FFFF00}Kills: {FFFFFF}[%i] \n {FFFF00}Score: {FFFFFF}[%i] \n {FFFF00}Skin: {FFFFFF}[%i] \n\n {F81414} For More information about your account please type /fullinfo", name,cash,deaths,kills,score,skin);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"{44A1D0}Your Account Stats{FFFFFF}:",string1,"Ok","");
return 1;
}