20.10.2017, 01:32
Hello, can you help me with my script, the vehicle is not insert into my DB after a cmd /veh
check the code: https://pastebin.com/xmiZxbRp
check the code: https://pastebin.com/xmiZxbRp
mysql_format(dbhandle, query, sizeof(query), "INSERT INTO `server_vehicles` SET Model='%d',Color1='%d',Color2='%d',PosX='%d',PosY='%d',PosZ='%d',PosA='%d'",
mysql_format(dbhandle, query, sizeof(query), "INSERT INTO `server_vehicles` SET Model='%d',Color1='%d',Color2='%d',PosX='%f',PosY='%f',PosZ='%f',PosA='%f'",
mysql_format(dbhandle, query, sizeof(query), "INSERT INTO `server_vehicles` (Model, Color1, Color2, PosX, PosY, PosZ, PosA)VALUES('%d', '%d', '%d', '%f', '%f', '%f', '%f')", Vehicle_infos[vehicleid][v_Model], Vehicle_infos[vehicleid][v_Color1], Vehicle_infos[vehicleid][v_Color2], Vehicle_infos[vehicleid][v_PosX], Vehicle_infos[vehicleid][v_PosY], Vehicle_infos[vehicleid][v_PosZ], Vehicle_infos[vehicleid][v_PosA]);
Ah Sorry , didnt noticed that, you are using a wrong INSERT syntax read more here
Here is the corrected line PHP Code:
|