[MySQL] Registering players.
#1

Hello.

My system is registering only one user in the MySQL,
I don't know why it's not registering one more playter that trying to register my server.

What is the problem?
This is the code:
Quote:

new querysd[200], escstring[100];
mysql_real_escape_string(inputtext, escstring);
format(querysd, sizeof(querysd), "INSERT INTO `users` (User, Password, Level) VALUES('%s', SHA1('%s'), 1)", PName(playerid), escstring);
mysql_query(querysd);

It's registering one player in MySQL, but If I try with new user name it's not.
If I delete the user in MySQL and then trying again, it's registering in the MySQL.
Reply


Messages In This Thread
[MySQL] Registering players. - by Activest - 10.02.2013, 19:58
Re: [MySQL] Registering players. - by Vince - 10.02.2013, 20:02
Re: [MySQL] Registering players. - by InfiniTy. - 10.02.2013, 20:19
Re: [MySQL] Registering players. - by Activest - 11.02.2013, 11:08
Re: [MySQL] Registering players. - by PaulDinam - 11.02.2013, 11:20
Re: [MySQL] Registering players. - by Activest - 11.02.2013, 11:34
Re: [MySQL] Registering players. - by InfiniTy. - 11.02.2013, 11:35
Re: [MySQL] Registering players. - by Activest - 11.02.2013, 11:40
Re: [MySQL] Registering players. - by InfiniTy. - 11.02.2013, 12:13
Re: [MySQL] Registering players. - by Activest - 11.02.2013, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)