Car Spawning - 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: Car Spawning (
/showthread.php?tid=150280)
Car Spawning -
Kayla.S - 25.05.2010
I have a car shop dialog which works fine. However I need it to spawn me a car when I'm in a different virtual world. I tried the wiki but it wouldn't work properly for me. :/ Here's the code if anyone can help me with this little issue. Thanks.
http://pastebin.com/050f1Jjh
Re: Car Spawning -
Jochemd - 25.05.2010
I can't explain more than this on my ipod which types slow... Use GetPlayerViryualWorld and SetVehicleVirtualWorld
Re: Car Spawning -
Kayla.S - 25.05.2010
Thanks for the response. I added the line:SetVehicleVirtualWorld(GetPlayerVehicleID(pla yerid), 1) however when I add the getplayervirtualworld it compiles with errors. Is there a chance someone could post exactly how it should look like? I'm new to all this and getting frustrated trying to get it to work. :/
Re: Car Spawning -
MadeMan - 25.05.2010
pawn Код:
SetVehicleVirtualWorld(SpawnedVehicles[playerid], GetPlayerVirtualWorld(playerid));
Re: Car Spawning -
Kayla.S - 25.05.2010
It worked. Thank you MadeMan.