Saving stats?
#1

Hello, I know how to make /stats command but don't know how to save them using Zcmd+sscanf
Here's my /Stats command
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    CMD:stats(playerid,params[])
    {
        if(IsPlayerConnected(playerid))
        {
            new statstring[128];
            SendClientMessage(playerid, COLOR_GREEN, "*** Your Stats ***");
            format(statstring, sizeof(statstring), "Kills: %d",PlayerInfo[playerid][pKills]);
            SendClientMessage(playerid, COLOR_GREEN, statstring);
            format(statstring, sizeof(statstring), "Deaths: %d",PlayerInfo[playerid][pDeaths]);
            SendClientMessage(playerid, COLOR_GREEN, statstring);
            format(statstring, sizeof(statstring), "Money: $%d",GetPlayerMoney(playerid));
            SendClientMessage(playerid, COLOR_GREEN, statstring);
        }
        return 1;
    }
    return 0;
}
just example
Reply
#2

you want to save stats with command?
WTF? Man
Reply
#3

Edit: Nvm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)