SA-MP Forums Archive
Vehicles ownership help - 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 ownership help (/showthread.php?tid=463785)



Vehicles ownership help - Yako - 13.09.2013

Hell, I have created vehicles ownership system, that saves the vehicle id like this:
vInfo[i][Id] = CreateVehicle(....

Everything works fine until I do /car scrap and one of the vehiles are destroyed, if I buy another vehicle without making
server restart, everything works fine, because all the ids are same as in the files. But if I just /car scrap and make restart then the ids are not the same like in files and the vehiles become bugged, any ideas how to fix it?