SA-MP Forums Archive
Vehicles on server got mixed up with IDs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicles on server got mixed up with IDs (/showthread.php?tid=649829)



Vehicles on server got mixed up with IDs - Saddin - 15.02.2018

I have vehicle ownership and it was working fine until suddenly other normal vehicles that are not used for ownership starting to get ID of the owner.

Does anyone know how can I debug it and find solution to problem.

There are over 600 vehicles on server that are bought by players and some of the properties of ownership can be used with vehicles that are not in ownership.

This system worked for more than 5 years and I can't find any reason why is it mixing..

Any ideas?


Re: Vehicles on server got mixed up with IDs - Abagail - 15.02.2018

Quote:

This system worked for more than 5 years and I can't find any reason why is it mixing..

Well, what has changed since around the time this stopped working? Can you track code changes?


Re: Vehicles on server got mixed up with IDs - RogueDrifter - 15.02.2018

used to happen with me, make sure after deleting a vehicle you set the variable's value to INVALID_VEHICLE_ID