MySQL Issue - 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 Issue (
/showthread.php?tid=442990)
MySQL Issue -
CrazyChoco - 09.06.2013
Hello members,
I was creating my gamemode, while i just founded this issue.
When i connect to the server first time, it will ask for register, but when i connect just after i disconnected from session 1. It asks me to login, but when i look in the database it shows me two accounts with the same details. From session 1 and session 2.
I might can be confusing, tell me and ill try to make it more clear.
My MYSQL Debug:
Quote:
[22:02:19] MySQL Debugging activated (06/09/13)
|
The issue is that it doesn't load the player stats, but just register as an new user. If you need the script, notify me.
-Thanks
Re: MySQL Issue -
Vince - 09.06.2013
Add a unique key on the name field in phpMyAdmin. Then try again and see what happens.
Re: MySQL Issue -
CrazyChoco - 09.06.2013
Thanks for the help Vince, I fixed the issue. The issue was that I mistyped at OnPlayerConnect.