warning 202: number of arguments does not match definition
#1

Hello guys! I have a more problem with this:

Script
Код:
carjob1 = AddStaticVehicle(482, 891.6422, -1206.9655, 16.9766);  LINE 59
	carjob2 = AddStaticVehicle(482, 897.3793, -1206.7032, 16.9766);  LINE 60
	carjob3 = AddStaticVehicle(482, 902.1320, -1207.4589, 16.9832);  LINE 61
Error's
Код:
(59) : warning 202: number of arguments does not match definition
(59) : warning 202: number of arguments does not match definition
(59) : warning 202: number of arguments does not match definition
(60) : warning 202: number of arguments does not match definition
(60) : warning 202: number of arguments does not match definition
(60) : warning 202: number of arguments does not match definition
(61) : warning 202: number of arguments does not match definition
(61) : warning 202: number of arguments does not match definition
(61) : warning 202: number of arguments does not match definition
Reply
#2

the compiler said it, arguments number doesn't match the definition that means you're missing parameters visit this link : Add Static Vehicle Samp Wiki
the syntax is (modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2)
you did model id and x y z you didnt put the R (rotation) nor did u put the COLOR parameters, add those so the code should be like (For ex):
PHP код:
carjob1 AddStaticVehicle(482891.6422, -1206.965516.97660.0 ,-1,-1);  //0.0 is the angle and -1 is for random car color LINE 59
    
carjob2 AddStaticVehicle(482897.3793, -1206.703216.9766,0.0,-1,-1); // LINE 60
    
carjob3 AddStaticVehicle(482902.1320, -1207.458916.9832,0.0,-1,-1); // LINE 61 
Hope that helped, gl.
Reply
#3

I resolved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)