Stats Save problйm +rep
#1

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(playeridparams[], help)
{
 new 
name[MAX_PLAYER_NAME];
 
GetPlayerName(playeridnamesizeof(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(string1sizeof 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;

Reply
#2

Replace PlayerInfo[playerid][pCash] to GetPlayerMoney(playerid)
And Player..[..][pScore] to GetPlayerScore(playerid)
Reply
#3

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]; .
Reply
#4

The Money and Score Save But The Kills And Death Don't Work
Reply
#5

No Help?
Reply
#6

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.
Reply
#7

There is But he don't Work in game
PHP код:
 format(string1sizeof 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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)