Syntax error
#1

I can't find the error?!
PHP код:
format(querysizeof(query), "INSERT INTO cars (id, model, x, y, z, a, owner, owned, price, locked, color1, color2, cSale) VALUES ('%i', '%i', '%f', '%f', '%f', '%f', 'None', '0', '%i', '0', '0', '0', '0')"cAutoIncreaseGetVehicleModel(GetPlayerVehicleID(playerid)), xyzaprice); 
Код:
[17:14:45] [Mysql]INSERT INTO cars (id, model, x, y, z, a, owner, owned, price, locked, color1, color2, cSale) VALUES ('0', '560', '1630.447998', '-1089.381713', '23.611164', '144.053558', 'None', '0', '750000', '0',
Reply
#2

Nvm.
Reply
#3

Quote:
Originally Posted by R0
Посмотреть сообщение
Put ` before and after each name like `id` and remove ' ' from the values like %f and replace the 0 in the values and put %d instead and put the zeros for the %d's that you just placed at the others things at the end of the query
(`) doesn't effect I found that query array was small :/
Thank you anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)