MySQL loading wrong data problem
#1

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?
Reply
#2

You should post a code or something..
Reply
#3

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

Add

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

Try to recreate this bug and post mysql log.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)