View Single Post
Old 03/02/2020, 02:58 PM   #9
Kwarde
High-roller
 
Kwarde's Avatar
 
Join Date: Nov 2009
Location: The Netherlands
Posts: 2,711
Reputation: 1671
Default Re: MySQL load vehicles issue

I still think you're mixing up the vehicle server ID and the vehicle mysql ID (ID and CarID) somewhere.

Quote:
I store Vehicle Number into my database and then using that Vehicle Number i want to load that car.
Do you refer to this line?:
Code:
CarInfo[j][cCarID] = NBC_AddStaticVehicleEx(CarInfo[j][cModel], CarInfo[j][cLocationx]...
Because that does not set a vehicle ID. It merely creates a vehicle and sets CarInfo[*][cCarID] to the ID of the newly created vehicle. Storing and loading that data (CarID) is really just a waste of space because you store it, load it, and then overwrite it again.
__________________
When the opportunity presents itself to flip-a da table, uh, you flip-a da table.

Discord: Kwarde#8009
Kwarde is offline   Reply With Quote