Query String
#1

I've no idea whats wrong here.

pawn Код:
format(query, sizeof(query), "INSERT INTO `teleports` (SQLid, pos_x, pos_y, pos_z, int, vw, topos_x, topos_y, topos_z, toint, tovw) VALUES (null, %f, %f, %f, %d, %d, %f, %f, %f, %d, %d)", \
    pos_x, pos_y, pos_z, int, vw, topos_x, topos_y, topos_z, toint, tovw);
Код:
Error (0): Could not execute query. 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 'int, vw, topos_x, topos_y, topos_z, toint, tovw) VALUES (null, 246.446166, 87.42' at line 1.
Reply
#2

Increase the size of 'query'
Reply
#3

I did from 250 to 500, and it still didn't work. Would it really be so much bigger?
Reply
#4

I've increased it to 1000 and I still get the same error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)