SA-MP Forums Archive
AddStaticVehicle adds multiple vehicles? - 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: AddStaticVehicle adds multiple vehicles? (/showthread.php?tid=256284)



AddStaticVehicle adds multiple vehicles? - Noah_Roufus - 20.05.2011

Hey, I'm working on an RP gamemode and I finally got to the part where I thought it was time to start adding vehicles. What I did was start adding vehicles at an airport in Las Venturas and noticed that they were spawning in doubles. So one use of AddStaticVehicle would add two vehicles in the same location instead of one.

pawn Код:
AddStaticVehicle(411, 1652.6920, 1616.6074, 10.4773, 358.3515, 0, 0);
So what I have above is what I have in my script ONCE and it spawns two vehicles. Any ideas? Any help would be great. If you need more information, just ask and I'll give it to you.


Re: AddStaticVehicle adds multiple vehicles? - Backwardsman97 - 20.05.2011

Apparently there's something else in your script causing it. Search around for AddStaticVehicle/CreateVehicle's.


Re: AddStaticVehicle adds multiple vehicles? - Noah_Roufus - 20.05.2011

Yeah, that's the first thing I did... Nothing.


Re: AddStaticVehicle adds multiple vehicles? - lowrida018 - 20.05.2011

Check the wiki?


Re: AddStaticVehicle adds multiple vehicles? - Noah_Roufus - 20.05.2011

Checking the wiki really won't help me. I understand the parameters. I've tried all three functions that I know of to add vehicles and they all do it. (CreateVehicle, AddStaticVehicle, AddStaticVehicleEx)


Re: AddStaticVehicle adds multiple vehicles? - (SF)Noobanatior - 20.05.2011

where are you adding it?


Re: AddStaticVehicle adds multiple vehicles? - Noah_Roufus - 20.05.2011

OnGameModeInit