PDA

View Full Version : MySQL not saving.


Kitten
25/04/2012, 11:14 PM
Solved

Roel
25/04/2012, 11:30 PM
Well did you already checked to variables? Like if they are correctly cased, do they even exist in your database, things like that because I cannot see the mistake in this code. So I think something wen't wrong at the structur of your database.

Kitten
25/04/2012, 11:32 PM
http://i48.tinypic.com/juedmp.png

Not really maybe the code for registering?


Fixed

Kar
25/04/2012, 11:49 PM
new EscapedText[164];
format(Query, sizeof(Query), "INSERT INTO `zmplayer` (`Username`, `password`, `Points`, `Kills`, `Deaths`, `mapsplayed`) VALUES ('%s', '%s', 0, 0, 0, 0)",pname(playerid),EscapedText);
mysql_query(Query);

String length was too short and you mised a '