[Help] MySQL bug i can'f fix, need help
#1

I'm busy trying to istert mysql cmds in my server. but have something i can't find a sollution.

Код:
new string[256];
format(string,sizeof(string),"INSERT INTO `users` (`username`, `password`, `cash`, `bank`, `adminlevel`, `years`, `months`) VALUES ('%s', '%s', '2500', '5000', '0', '0', '0')", usernamein, passwordin);
mysql_query(string);
but i get this error in my MySQL Log
Quote:

An error has occured. (Error ID: 2014, Commands out of sync; you can't run this command now

Please help
Reply
#2

You might have missed adding a mysql_free_result(); earlier in the script like OnPlayerConnect or whatever.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)