PDA

View Full Version : MySQL Issue


CrazyChoco
09/06/2013, 09:05 PM
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:
[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

Vince
09/06/2013, 09:17 PM
Add a unique key on the name field in phpMyAdmin. Then try again and see what happens.

CrazyChoco
09/06/2013, 09:19 PM
Thanks for the help Vince, I fixed the issue. The issue was that I mistyped at OnPlayerConnect.