22.01.2015, 07:25
It does not load the database new position of the car !
My problem is the " WHERE ID " I am car database with ID : 1, and if I change " WHERE ID =% s " with " WHERE ID = 1 "then it works perfectly
My problem is the " WHERE ID " I am car database with ID : 1, and if I change " WHERE ID =% s " with " WHERE ID = 1 "then it works perfectly
Код HTML:
mysql_format(handle, query, sizeof(query), "UPDATE `vehicles` SET `PositionX` = '%f', `PositionY` = '%f', `PositionZ` = '%f', `Angle` = '%f' WHERE ID = '%i'", VehiclesInfo[carid][vPositionX], VehiclesInfo[carid][vPositionY], VehiclesInfo[carid][vPositionZ], VehiclesInfo[carid][vAngle], VehiclesInfo[carid][vID]); mysql_query(handle, query);