Insert vehicle into DB ?
#2

PHP Code:
mysql_format(dbhandlequerysizeof(query), "INSERT INTO `server_vehicles` SET Model='%d',Color1='%d',Color2='%d',PosX='%d',PosY='%d',PosZ='%d',PosA='%d'"
Here the format specifier is wrong, here posx, y, z and a have been declared as Float, therefore you need to follow the correct format.
here is the corrected line.
PHP Code:
mysql_format(dbhandlequerysizeof(query), "INSERT INTO `server_vehicles` SET Model='%d',Color1='%d',Color2='%d',PosX='%f',PosY='%f',PosZ='%f',PosA='%f'"
Reply


Messages In This Thread
Insert vehicle into DB ? - by Klayton - 20.10.2017, 01:32
Re: Insert vehicle into DB ? - by Zeth - 20.10.2017, 02:50
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 04:17
Re: Insert vehicle into DB ? - by Zeth - 20.10.2017, 05:13
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 05:52
Re: Insert vehicle into DB ? - by justice96 - 20.10.2017, 07:15
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 07:17
Re: Insert vehicle into DB ? - by justice96 - 20.10.2017, 07:18
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 07:19
Re: Insert vehicle into DB ? - by Zeth - 20.10.2017, 08:10
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 08:27
Re: Insert vehicle into DB ? - by Zeth - 20.10.2017, 09:10
Re: Insert vehicle into DB ? - by Klayton - 20.10.2017, 10:40

Forum Jump:


Users browsing this thread: 3 Guest(s)