SA-MP Forums Archive
Not saving - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Not saving (/showthread.php?tid=455273)



Not saving - DarkB0y - 01.08.2013

The vip stat is not saving , im using mysql but idk what the problem


pawn Код:
Removed
Whats wrong All stats are saving but only the vip stat not saving


Re: Not saving - appleomax - 01.08.2013

Change these lines:

Код:
mysql_fetch_field_row(string, "vip"); PlayerInfo[playerid][pVIP] = strval(string);
Код:
 format(query, sizeof(query), "UPDATE `accounts` SET admin=%d, vip=%d, warnings=%d, score=%d, money=%d, kills=%d, deaths=%d, points=%d WHERE user='%s'", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pVIP], PlayerInfo[playerid][pWarnings], GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pPoints], Name(playerid));



Re: Not saving - DarkB0y - 01.08.2013

So the problem is the capital

It worked thanks