Help me stats command
#1

i have this :
Код:
CMD:stats(playerid,params[])
{
	new Admin = PlayerInfo[playerid][pAdmin];
	new Cash = PlayerInfo[playerid][pCash];
	new Score = GetPlayerScore(playerid);
	new Kills = PlayerInfo[playerid][pKills];
	new Deaths = PlayerInfo[playerid][pDeaths];
	new str[128];
	format(str,sizeof(str),"{00FF22}Admin: %d\n{00FF22}Cash: %d\n{00FF22}Score: %d\n{00FF22}Kills: %d\n{00FF22}Deaths: %d",Admin,Cash,Score,Kills,Deaths);
	ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your Account",str,"OK","");
	return 1;
}
but when i'm going to server the stats just right admin is level 1338 and cash score kills deaths everything just zero why ?
Reply


Messages In This Thread
Help me stats command - by xganyx - 05.07.2013, 00:35
Re: Help me stats command - by Guest123 - 05.07.2013, 00:52
Re: Help me stats command - by xganyx - 05.07.2013, 01:09
Re: Help me stats command - by [HiC]TheKiller - 05.07.2013, 01:13
Re: Help me stats command - by Guest123 - 05.07.2013, 01:24
Re: Help me stats command - by xganyx - 05.07.2013, 01:59
Re: Help me stats command - by [HiC]TheKiller - 05.07.2013, 05:10

Forum Jump:


Users browsing this thread: 1 Guest(s)