/stats command isnt updating the stats
#1

Hello someone helped me out make a stats command
but when i increase my score by robbing shops it dosent update the new score i get

Here is my code:
pawn Код:
CMD:stats(playerid,params[])
{
    new admin = pInfo[playerid][Adminlevel], //User's admin level
        vip = pInfo[playerid][VIPlevel], //User's vip level
        regularplayerlevel = pInfo[playerid][Regularlevel],
        cash = GetPlayerMoney(playerid), //User's money
        scores = pInfo[playerid][Scores],
        crank = pInfo[playerid][Coprank],
        kills = pInfo[playerid][Kills], //User's kills
        deaths = pInfo[playerid][Deaths]; //User's deaths
    new string[500];
    format(string,sizeof(string),"Admin level: %i\nVip level: %i\nRegularPlayerLevel: %i\nCash: %d\nScores: %i\nCop rank: %i\nKills: %i\nDeaths: %i",admin,vip,regularplayerlevel,cash,scores,crank,kills,deaths);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your status",string,"Ok",""); // define the DIALOG_STATS on the top
    return 1;
}
Reply


Messages In This Thread
/stats command isnt updating the stats - by efrim123 - 15.10.2013, 02:46
Re: /stats command isnt updating the stats - by verlaj - 15.10.2013, 05:03
Re: /stats command isnt updating the stats - by zT KiNgKoNg - 15.10.2013, 09:07
Re: /stats command isnt updating the stats - by Harish - 15.10.2013, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)