MySQL saving stats.
#3

Strange, i'm guessing it's something eles in my code then.
pawn Код:
//playerfinishmission
{
    PlayerInfo[playerid][Shamal]++;
    SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
    ResetMissionBar(playerid);
    return 1;
}
pawn Код:
//the saving stock, the stats save when a player disconnects.  and on a 3 min timer.
public SaveUser(playerid)
{
    if(IsLogged(playerid))
    {
        new Query[300]; format(Query, sizeof(Query), "UPDATE users SET money = %d, score = %d, Shamal = %d, Cargo = %d, Helicopter = %d, ban = %d, ban_reason = '%s' WHERE username = '%s';", GetPlayerMoney(playerid), GetPlayerScore(playerid), PlayerInfo[playerid][Shamal], PlayerInfo[playerid][Cargo],PlayerInfo[playerid][Helicopter], PlayerInfo[playerid][Banned], PlayerInfo[playerid][Reason], GetName(playerid));
        mysql_query(Query);
    }
}
Reply


Messages In This Thread
MySQL saving stats. - by Haydz - 26.01.2011, 04:35
Re: MySQL saving stats. - by PeteShag - 26.01.2011, 04:47
Re: MySQL saving stats. - by Haydz - 26.01.2011, 05:15
Re: MySQL saving stats. - by PeteShag - 26.01.2011, 05:21
Re: MySQL saving stats. - by Haydz - 26.01.2011, 06:24
Re: MySQL saving stats. - by Not available - 26.01.2011, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)