mysql syntax prob
#1

Код:
      format(string, 200, "INSERT INTO vehicles (`Model`,`vPos`,` vPos2`, `vPos3`, `vPos4`, `color1`, `color2`, `price`, `rent`, `buyable`, `faction`, `crew`, `job`, `fuel`) VALUES('%i', '%f', '%f', '%f', '%f', '%i', '%i', '%i', '%i', '%i', '%i', '%i', '%i', '%i')",
	  model, x, y, z, a, color1, color2, price, rent, buyable, faction, crew, job, 100);
Код:
[15:32:26] CMySQLHandler::Query(INSERT INTO vehicles (`Model`,`vPos`,` vPos2`, `vPos3`, `vPos4`, `color1`, `color2`, `price`, `rent`, `buyable`, `faction`, `crew`, `job`, `fuel`) VALUES('411', '2795.434326', '-2398.064941', '15.401) - 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 ''15.401' at line 1)
I don't see anything wrong there
Reply


Messages In This Thread
mysql syntax prob - by armyoftwo - 27.10.2010, 12:29
Re: mysql syntax prob - by DarrenReeder - 27.10.2010, 12:58
Re: mysql syntax prob - by armyoftwo - 27.10.2010, 13:05
Re: mysql syntax prob - by DarrenReeder - 27.10.2010, 13:13
Re: mysql syntax prob - by armyoftwo - 27.10.2010, 13:26
Re: mysql syntax prob - by Think - 09.11.2010, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)