08.11.2011, 13:06
Hi guys,
I'm building a vehicle system right now, I'm almost done with it.
I have collided with a problem, when someone sells his car, or new cars adding to the mod, the carid changing and the INI will not change himself.
So I tried to add a parameter that will save on the vehicle file, let's says the vehicle id is 3 so in the vehicle file(3.ini), will be wroten ID = 3.
I tried to do
But that's printing me the Error when it's not true.
To verify that I removed one vehicle from the gm, and the vehicle id that was 3 become 2, and his file still was 3, with ID = 3.
It's really important for me, thanks for who helping/trying to.
Good day.
I'm building a vehicle system right now, I'm almost done with it.
I have collided with a problem, when someone sells his car, or new cars adding to the mod, the carid changing and the INI will not change himself.
So I tried to add a parameter that will save on the vehicle file, let's says the vehicle id is 3 so in the vehicle file(3.ini), will be wroten ID = 3.
I tried to do
PHP код:
if(VehicleInfo[vehicleid][vID] != vehicleid) printf("Error");
To verify that I removed one vehicle from the gm, and the vehicle id that was 3 become 2, and his file still was 3, with ID = 3.
It's really important for me, thanks for who helping/trying to.
Good day.