Get id of the vehicle to save position (MySQL)
#4

In-game vehicleids are volatile and subject to change and as such must never be used as a key in SQL. The unique and nonvolatile SQL id must be saved to a variable in order to identify a vehicle. You should create another variable in the enumerated array to store the key. Call it sqlId or something. It is this id that must be used in the where-clause, not the vehicleid retrieved from GetPlayerVehicleID.

Quote:
Originally Posted by 7days7
Посмотреть сообщение
and you have to add char ' to your float, For Example - `fPosX` = '%f'
False. This will slow done processing because the MySQL server must run a conversion to convert it from string to float.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)