Car spawn
#1

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?
Reply
#2

the correct parameters
PHP Code:
(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay, addsiren=0) 
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)