Help me stats command
#2

can you show your first variable like

pawn Код:
enum PInfo
{
    Bla2,
    Bla
}
edit: use this

pawn Код:
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}Cash: %d\nAdmin: %d\n{00FF22}Score: %d\n{00FF22}Kills: %d\n{00FF22}Deaths: %d",Cash,Admin,Score,Kills,Deaths);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your Account",str,"OK","");
    return 1;
}
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: 2 Guest(s)