17.07.2009, 11:03
Hi
I have this weird problem, one of my SQL queries is not inserting new data (/register) into the SQL DB.
Can anyone tell me what's wrong with my query? 'Cause I can't find any mistakes ...
It works fine until the 4th debug message, but at number 5 it is supposed to insert new data into the DB, which it doesn't.
http://pastebin.com/m617c1de3
I have this weird problem, one of my SQL queries is not inserting new data (/register) into the SQL DB.
Can anyone tell me what's wrong with my query? 'Cause I can't find any mistakes ...
It works fine until the 4th debug message, but at number 5 it is supposed to insert new data into the DB, which it doesn't.
http://pastebin.com/m617c1de3
pawn Код:
format(query,sizeof(query),"INSERT INTO `PlayerInfo` (UserName,Password) VALUES ('%s',md5('%s'))", pName, password);
mysql_query(query);
print("Debug [5]");
Код:
[12:55:00] Incomming connection: XX.XXX.XXX.XX:2466 [12:55:00] [join] Test_Account has joined the server (0:XX.XXX.XXX.XX) [12:55:01] Test_Account (XX.XXX.XXX.XX) has not been found on the Sprunk Buster blacklist. [12:55:29] Debug [1] [12:55:29] Debug [2] [12:55:29] Debug [3] [12:55:29] Debug [4] [12:55:29] Debug [5] [12:55:29] (null) // print resultline [12:55:29] Debug [6] [12:55:29] Debug: uid: 0 [12:55:29] [part] Test_Account has left the server (0:2)