Mysql not save score and money
#3

Opps my bad

I have stock save player, here is he

pawn Код:
SavePlayer(playerid)
{
    if(PlayerInfo[playerid][LoggedIn] == 1)
    {
        new Query[1000];
        format(Query, 1000, "UPDATE `playerdata` SET `admin` = '%d', `score` = '%d', `money` = '%d', `kills` = '%d', `deaths` = '%d', `banned` = '%d', `Donor` = '%d', `Pilot` = '%d', `NavyPilot` = '%d', `Helper` = '%d' WHERE `id` = '%d' LIMIT 1",
        PlayerInfo[playerid][Level],
        PlayerInfo[playerid][pScore],
        PlayerInfo[playerid][Money],
        PlayerInfo[playerid][Kills],
        PlayerInfo[playerid][Deaths],
        PlayerInfo[playerid][banned],
        PlayerInfo[playerid][dRank],
        PlayerInfo[playerid][pPilot],
        PlayerInfo[playerid][jPilot],
        PlayerInfo[playerid][Helper],
        PlayerInfo[playerid][ID]);
        mysql_query(Query);
    }
}
Reply


Messages In This Thread
Mysql not save score and money - by Ryz - 22.10.2014, 11:19
Re: Mysql not save score and money - by UnknownGamer - 22.10.2014, 13:10
Re: Mysql not save score and money - by Ryz - 22.10.2014, 13:15
Re: Mysql not save score and money - by UnknownGamer - 22.10.2014, 13:19
Re: Mysql not save score and money - by Ryz - 22.10.2014, 13:25

Forum Jump:


Users browsing this thread: 4 Guest(s)