SA-MP Forums Archive
MySQL Log problem - 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)
+--- Thread: MySQL Log problem (/showthread.php?tid=313598)



MySQL Log problem - vent - 26.01.2012

Hi!

pawn Код:
format(sisestus, sizeof(sisestus), "INSERT INTO logi (aeg,logi) VALUES('%d-%d-%d kell:%d:%d:%d','%s'", paev, kuu, aasta, tund, minut, sekund, string);
    mysql_query(sisestus);
This is my code.

The MySQL debug gives me this:

Код:
[20:44:33] CMySQLHandler::Query(INSERT INTO logi (aeg,logi) VALUES('26-1-2012 kell:20:44:33','[OOC] Administraator Vladimir Koljanov: test.') - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1)
Help?