SA-MP Forums Archive
Help with MySQL [Again] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with MySQL [Again] (/showthread.php?tid=252202)



Help with MySQL [Again] - Danny - 30.04.2011

Hey,

So, i have a problem with mysql (yes, again).
My delete query doesn't work. The debug mode shows me the command is out of sync, but i dont know how to solve this. I searched on ******. It seems i use the good synch but still it doesnt work. Can anyone help me?

Код:
format(file, sizeof file,"DELETE FROM houses WHERE houseid = '%d'",hid);
mysql_query(file);
Thanks,

Greetz,
Danny


Re: Help with MySQL [Again] - Vince - 30.04.2011

Command out of syncs occurs when you did something wrong with the query that was previously executed. Forgetting to call mysql_free_result, for example.