18.02.2015, 14:30
Well hello there, I am facing an issue with the vehicle system I am having. Let me get straight into it.
I am looping, then loading the data based on the loop id. Let's say we have 3 cars.
Car File 1 - Loaded.
Car File 2- Loaded.
Car File 3 - Loaded.
It works perfect if the numbers are one after one but what I am facing is, if car file 2 was deleted. Since it's samp so it takes the empty vehicle id. It takes 2. But the loop id is 3. therefore in the vehicle ID 2 variables will not be set.
Example:
Car File 1 - Loaded.
Car File 2 - NOT FOUND (continue)
Car File 3 - Loaded. But the vehicle ingame ID is 2 not 3.
If something is not clear please tell me and I'm hoping someone is familiar with this issue.
Thanks.
I am looping, then loading the data based on the loop id. Let's say we have 3 cars.
Car File 1 - Loaded.
Car File 2- Loaded.
Car File 3 - Loaded.
It works perfect if the numbers are one after one but what I am facing is, if car file 2 was deleted. Since it's samp so it takes the empty vehicle id. It takes 2. But the loop id is 3. therefore in the vehicle ID 2 variables will not be set.
Example:
Car File 1 - Loaded.
Car File 2 - NOT FOUND (continue)
Car File 3 - Loaded. But the vehicle ingame ID is 2 not 3.
If something is not clear please tell me and I'm hoping someone is familiar with this issue.
Thanks.