Stats Save problйm +rep -
AYOUYOU - 08.11.2014
Guys My Stats Can't Be saved
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;
}
Re: Stats Save problйm +rep -
biker122 - 08.11.2014
Replace PlayerInfo[playerid][pCash] to GetPlayerMoney(playerid)
And Player..[..][pScore] to GetPlayerScore(playerid)
Re: Stats Save problйm +rep -
dominik523 - 08.11.2014
Yeah well something isn't good when you are giving the money to the player. Show us your code with giving the money because it looks like you are using GivePlayerMoney and you are not saving it to the PlayerInfo[playerid][pCash]; .
Re : Re: Stats Save problйm +rep -
AYOUYOU - 08.11.2014
The Money and Score Save But The Kills And Death Don't Work
Re : Stats Save problйm +rep -
AYOUYOU - 08.11.2014
No Help?
Re: Stats Save problйm +rep -
dominik523 - 08.11.2014
What's the problem, you can't see Deaths in your dialog or?
And there's no need for placing \n\n, just place \n.
Re : Re: Stats Save problйm +rep -
AYOUYOU - 08.11.2014
There is But he don't Work in game
PHP код:
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;
}