Server doesnt save score and money
#1

As said above, my mysql system doesnt save the score/money.

SavePlayer:
pawn Код:
SavePlayer(playerid)
{
    if(pInfo[playerid][Logged] == 1)
    {
        new Query[500];
        format(Query, 500, "UPDATE `playerdata` SET `admin` = '%d', `score` = '%d', `money` = '%d', `kills` = '%d', `deaths` = '%d' WHERE `id` = '%d' LIMIT 1",
        pInfo[playerid][pAdmin],
        pInfo[playerid][pScore],
        pInfo[playerid][pMoney],
        pInfo[playerid][pKills],
        pInfo[playerid][pDeaths],
        pInfo[playerid][ID]);
        mysql_query(Query);
    }
}
And yes i did at onplayerdisconnect
pawn Код:
SavePlayer(playerid);
My enum:
pawn Код:
enum PlayerInfo
{
    ID, // id of the player
    pDutyOn,
    pDutyOff,
    Nick[24], // name of the player
    pAdmin, // admin level of the player
    pMoney, //money of the player
    pKills, // Kills of the player
    pDeaths, // deaths of the player
    pScore, // score of the player
    IP[16], // Storing the ip of the player
        Logged, // Players logged in or not variable
        IsRegistered //checks if the player is registered or not.
};
Please someone help me, because its important for my server.
Reply


Messages In This Thread
Server doesnt save score and money - by Jimmy0wns - 02.05.2013, 20:01
Re: Server doesnt save score and money - by Jimmy0wns - 02.05.2013, 21:06
Re: Server doesnt save score and money - by RevolutionaryGaming - 02.05.2013, 22:24
Respuesta: Server doesnt save score and money - by JustBored - 03.05.2013, 06:06
Re: Server doesnt save score and money - by Jimmy0wns - 03.05.2013, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)