Problem with Trains on Vehicle 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Trains on Vehicle System (
/showthread.php?tid=102618)
Problem with Trains on Vehicle System -
Mr.Z - 16.10.2009
When trains created already have their trailers...
The question is: When you create a train will automatically creating 4 vehicles (1+3 trailers)?
It's the only explanation for the fact that my car system is buggy when I add Trains.
Note: In my system each vehicle has a file, whose data are stored in arrays such as gasoline, oil, status, pumps, components... that are completely changed when a Train on the server.
Any solution to this?
I tried some things but without success, the system is still buggy.
I hope you understand me, Sorry bad english, Thanks
Re: Problem with Trains on Vehicle System -
dugi - 16.10.2009
Train with carriages is a special vehicle and theres no way to create it in other way. Remember that you have to use AddStaticVehicle instead of CreateVehicle to add a train to avoid any problems.