MySQL wiping account
#5

It's most likely because you haven't checked whether the player has actually authenticated and spawned before saving their stats, which causes the data saved under their name to be wiped, as no variables have been set.

Example:

(under your login dialog)
PlayerData[playerid][pLoaded] = true;

(under your data save callback)
if(!PlayerData[playerid][pLoaded])
return 0;

Reset the pLoaded variable once they connect / disconnect.
Reply


Messages In This Thread
MySQL wiping account - by izeatfishz - 31.12.2015, 00:24
Re: MySQL wiping account - by Stanford - 31.12.2015, 02:43
Re: MySQL wiping account - by Abagail - 31.12.2015, 02:51
Re: MySQL wiping account - by yvoms - 31.12.2015, 12:10
Respuesta: MySQL wiping account - by IzadorO - 31.12.2015, 20:23

Forum Jump:


Users browsing this thread: 2 Guest(s)