Здравствуйте.. Хочу добавить сирену автомобилю, но ошибка 202:
PHP код:
(10845) : warning 202: number of arguments does not match definition
(10847) : warning 202: number of arguments does not match definition
Код:
PHP код:
addob = AddStaticVehicleEx(415,1570.2266,-1710.4413,5.6295,0.0,1,1,1200,1); // 10845
AttachDynamicObjectToVehicle(CreateDynamicObject(19419, 0.0, 0.0, -1000.0, 0.0, 0.0, 0.0), addob, 0.00000, -0.36, 0.56, 0.00000, 0.00000, 0.00000);
addob = AddStaticVehicleEx(560,1564.7163,-1710.7175,5.5959,0.0,0,0,1200,1); // 10847
AttachDynamicObjectToVehicle(CreateDynamicObject(19797,0.0,0.0,-1000.0,0.0,0.0,0.0), addob, 0.180, 2.589, -0.219, 0.000, 0.000, 180.000);
Натив в a_samp.inc следующий:
PHP код:
native AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay, addsiren=0);