stats not updating
#2

Use this to debug it.
pawn Код:
CMD:stats(playerid, params[])
{
    new string[128];
    format(string, sizeof(string), "† Kills: %d † Deaths: %d † Experience: %d †", PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pExp]);
    SendClientMessage(playerid, COLOR_GREEN, string);

    PlayerInfo[playerid][pKills] ++;
    PlayerInfo[playerid][pDeaths]++;
    PlayerInfo[playerid][pExp]   ++;
   
    format(string, sizeof(string), "† Kills: %d † Deaths: %d † Experience: %d †", PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pExp]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return 1;
}
Also show me how do you increase it.
Reply


Messages In This Thread
stats not updating - by facekche - 01.08.2015, 16:26
Re: stats not updating - by xVIP3Rx - 01.08.2015, 16:54
Re: stats not updating - by Keyhead - 01.08.2015, 17:17
Re: stats not updating - by facekche - 01.08.2015, 17:54
Re: stats not updating - by xVIP3Rx - 01.08.2015, 18:21
Re: stats not updating - by facekche - 02.08.2015, 03:37
Re: stats not updating - by facekche - 02.08.2015, 05:06
Re: stats not updating - by xVIP3Rx - 02.08.2015, 05:12
Re: stats not updating - by facekche - 02.08.2015, 05:28
Re: stats not updating - by xVIP3Rx - 02.08.2015, 05:47

Forum Jump:


Users browsing this thread: 1 Guest(s)