SA-MP Forums Archive
Problems with vehicles - Printable Version

+- SA-MP Forums Archive (
+-- Forum: SA-MP Scripting and Plugins (
+--- Forum: Scripting Help (
+---- Forum: Help Archive (
+---- Thread: Problems with vehicles (/showthread.php?tid=214363)

Problems with vehicles - silvan - 21.01.2011

Hi, i added a selling vehicles in my gm for my future server and i have some problem here.

I have normal vehicles which they use only " CreateVehicle" ( which they are public not for sale )


the last vehicle i named it " lastnormalvehicle" like ( new lastnormalvehicle = CreateVehicle..... )

Then i used to make just to check the vehicle ID for example

SellableVehicle = GetPlayerVehicleID(playerid) - lastnormalvehicle;

And now when someone had sold his vehicle which the server destroy the car and its records.

So now i ended up with Sellable Vehicles: 1, 2, 3, 5 and the 5th for some reason ( probably ) cause there isn't any 4th, it got messed up ( but server can read the file but it aint finding its vehicle id the id that is sellable not the physical vehicleid )

Any ideas on how to fix this?

Re: Problems with vehicles - silvan - 21.01.2011

so anyone?