#8

Well... You're resetting variables before saving them, so that should give you 0 in each variable (except natives), and another thing, you don't need to reset them, except if you have them as static and worry about the next player's slot. Try using that:

PHP код:
SavePlayerInfo(playerid)
{
    
sInfo[playerid][XP] = GetPlayerScore(playerid);
    
sInfo[playerid][pinigai] = GetPlayerMoney(playerid);

    new 
query[144];
    
format(querysizeof(query), "UPDATE `user` SET `XP` = '%d', pinigai = '%d', adminlevel = '%d' WHERE id='%d'",
    
sInfo[playerid][XP], sInfo[playerid][pinigai], sInfo[playerid][adminlevel], sInfo[playerid][id]);
    
mysql_tquery(manomysqlquery);
    return 
1;

Hope you're using the latest version of the plugin.
Reply


Messages In This Thread
Help - by Heress - 30.10.2018, 09:14
Re: Help - by Tenka - 30.10.2018, 09:34
Re: Help - by TheToretto - 30.10.2018, 09:35
Re: Help - by Heress - 30.10.2018, 09:43
Re: Help - by Heress - 30.10.2018, 14:11
Re: Help - by UFF - 30.10.2018, 14:22
Re: Help - by Heress - 30.10.2018, 14:30
Re: Help - by TheToretto - 30.10.2018, 14:33
Re: Help - by UFF - 30.10.2018, 14:39
Re: Help - by Heress - 30.10.2018, 14:41
Re: Help - by Heress - 30.10.2018, 14:45

Forum Jump:


Users browsing this thread: 2 Guest(s)