SQL registration problem
#1

Alright so the problem is really simple but Im not sure whats causing it since there are no errors or anything in SQL or such...

Player A registers and everything is fine, now person B logs in and gets person A stats for some bloody reason (sorry for cursing...). Only person B gets their stats, no one else

code for registration
PHP код:
if(!response) return Kick(playerid);
            if(
strlen(inputtext) < 6) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"Register""In order to play, you need to register.\nYour password must be at least 6 characters long!""Register""Quit");
              new 
query[512],string[128];
            
WP_Hash(AccInfo[playerid][Password], 129inputtext); 
            
mysql_format(mysqlquerysizeof(query), "INSERT INTO `players` (`Username`, `Password`, `IP`, `Admin`, `VIPLevel`,`CharactersCreated`,`AgeStarted`) VALUES ('%e', '%e', '%e',0,0,0,%d)"Name[playerid], AccInfo[playerid][Password], IP[playerid],gettime());
            
mysql_tquery(mysqlquery"OnAccountRegister""i"playerid); 
It doesnt happen all the time, just sometimes...
Reply


Messages In This Thread
SQL registration problem - by Squirrel - 29.01.2016, 14:58
Re: SQL registration problem - by JeaSon - 29.01.2016, 15:00
Re: SQL registration problem - by Squirrel - 29.01.2016, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)