Unstable vehicles system? - 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: Unstable vehicles system? (
/showthread.php?tid=590509)
Unstable vehicles system? -
Metharon - 30.09.2015
Well , my question is simple:
- Is better to create static vehicles for jobs , department of vehicles .
OR to create dynamic vehicles?
In the past i have been tried to create dynamic vehicles for every player , but sometimes the problem was:
- Somehow the player personal id got mistaken by a job car?!
... how is this even possible ? ... i mean there was nothing wrong in the script...
Re: Unstable vehicles system? -
Scenario - 30.09.2015
Not sure what you mean by "dynamic vehicles." No such thing AFAIK. I use "CreateVehicle()" for every vehicle on the server. If you're loading them properly, they shouldn't be getting mixed-up ID's. Vehicle ID's start from 1 and each time AddStaticVehicle(Ex) or CreateVehicle() is called, that number continues to increase (there's always differences if you delete a vehicle and spawn a new one, though: that will take the ID of the vehicle you deleted if I remember correctly).
If you have some code, it might be a good idea to provide it so we can all take a look!