SA-MP Forums Archive
MySQL loading wrong data problem - 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: MySQL loading wrong data problem (/showthread.php?tid=659352)



MySQL loading wrong data problem - Ferman - 30.09.2018

Hello,

I have a problem with my MySQL login system. I dont know how it happens and from what it happens.
This problem happens not everytime it happens sometimes and i dont know from what.
When users logins in their account, then they logs in wrong account.
Its not wrong account but MySQL loads a another players account.
So i login with my username and password and MySQL loads a anothers players data to my account.
Theres no problem with the login and register system but theres is a problem with another systems i think.
I dont know from what it happens so maybe you have any idea and somebody can help?
So what can the problem? What can wrong?


Re: MySQL loading wrong data problem - solstice_ - 30.09.2018

You should post a code or something..


Re: MySQL loading wrong data problem - Ferman - 30.09.2018

This problems happens not everytime, it happens after a while and i have no errors in mysql logs


Re: MySQL loading wrong data problem - KinderClans - 30.09.2018

Add

pawn Код:
mysql_log(ALL);
to OnGameModeInit.

Try to recreate this bug and post mysql log.


Re: MySQL loading wrong data problem - Calisthenics - 01.10.2018

Race condition.

Take a look at the example script and its explanation on how to avoid it: https://github.com/pBlueG/SA-MP-MySQ...pwn#L233-#L243