Car spawn - 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: Car spawn (
/showthread.php?tid=616411)
Car spawn -
,TomY' - 04.09.2016
Hi. I have warning:
Code:
warning 202: number of arguments does not match definition
Line:
Code:
car = CreateVehicle(415, Random[0], Random[1], Random[2], -1, -1, 60);
How to fix?
Re: Car spawn -
SyS - 04.09.2016
the correct parameters
PHP Code:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0)
Re: Car spawn -
saffierr - 04.09.2016
Example:
PHP Code:
CreateVehicle(411, 1500, 1500, 15, 180, 0, 0, -1);
This will spawn an Infernus(411), at LV airport somewhere with black colour(0, 0).
Siren is optional.