Cash & Score not saving
#8

Why do you use GetPlayerScore[...] if you don't use it?

pawn Код:
new
        Query[ 200 ],
        name[ MAX_PLAYER_NAME ]
    ;
    GetPlayerName(playerid, name, sizeof(name));
    if(Bit1_Get(g_PlayerLogged, playerid) == 1)
    {
        PlayerInfo[playerid][AdminLevel]=Bit16_Get(g_AdminLevel, playerid);
        PlayerInfo[playerid][Score]=GetPlayerScore(playerid);
        PlayerInfo[playerid][Cash]=GetPlayerMoney(playerid);
        DB_Escape(name);
        format(Query,sizeof(Query),"UPDATE `USERS` SET ADMINLEVEL = '%d', SCORE = '%d', CASH = '%d', ARMYPERM = '%d' WHERE `NAME` = '%s'", PlayerInfo[playerid][AdminLevel],PlayerInfo[playerid][Score],PlayerInfo[playerid][Cash],PlayerInfo[playerid][ArmyPerm], name);
        db_query(Database, Query);
        Bit1_Set(g_PlayerLogged, playerid, false);
    }
Reply


Messages In This Thread
[FIXED]Cash & Score not saving - by MadSkillz - 24.09.2011, 09:16
Re: Cash & Score not saving - by uprp - 24.09.2011, 09:17
Re: Cash & Score not saving - by MadSkillz - 24.09.2011, 09:18
Re: Cash & Score not saving - by uprp - 24.09.2011, 09:19
Re: Cash & Score not saving - by MadSkillz - 24.09.2011, 09:20
Re: Cash & Score not saving - by uprp - 24.09.2011, 09:26
Re: Cash & Score not saving - by Jafet_Macario - 24.09.2011, 09:38
Re: Cash & Score not saving - by Xyrex - 24.09.2011, 09:38
Re: Cash & Score not saving - by MadSkillz - 24.09.2011, 09:44

Forum Jump:


Users browsing this thread: 2 Guest(s)