warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (
/showthread.php?tid=646416)
warning 202: number of arguments does not match definition -
MariusAdv - 16.12.2017
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
Re: warning 202: number of arguments does not match definition -
RogueDrifter - 16.12.2017
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(482, 891.6422, -1206.9655, 16.9766, 0.0 ,-1,-1); //0.0 is the angle and -1 is for random car color LINE 59
carjob2 = AddStaticVehicle(482, 897.3793, -1206.7032, 16.9766,0.0,-1,-1); // LINE 60
carjob3 = AddStaticVehicle(482, 902.1320, -1207.4589, 16.9832,0.0,-1,-1); // LINE 61
Hope that helped, gl.
Re: warning 202: number of arguments does not match definition -
MariusAdv - 16.12.2017
I resolved.