28.09.2016, 17:43
I don't quite understand what you mean. The first vehicle is not loaded at all?
I have a question though, do you use R7 version and you use strval because there were added functions later that return integers/floats directly. Consider updating to latest (R41 or R39-6 if you can't run the latest).
Saving/loading in-game vehicle IDs is not a good way, people tend to use bad ways because of bad habits of others (yes, those who initially wrote it like that). Adding/Removing a vehicle will mess everything up.
If a vehicle doesn't have a single component, you are wasting 17 columns (there are only 14 slots by the way) to be empty. Here's a good tutorial about how to properly save components: https://sampforum.blast.hk/showthread.php?tid=420363
I have a question though, do you use R7 version and you use strval because there were added functions later that return integers/floats directly. Consider updating to latest (R41 or R39-6 if you can't run the latest).
Saving/loading in-game vehicle IDs is not a good way, people tend to use bad ways because of bad habits of others (yes, those who initially wrote it like that). Adding/Removing a vehicle will mess everything up.
If a vehicle doesn't have a single component, you are wasting 17 columns (there are only 14 slots by the way) to be empty. Here's a good tutorial about how to properly save components: https://sampforum.blast.hk/showthread.php?tid=420363