02.05.2015, 16:18
Hi everyone,
I am trying to test out this new system native CreateVehicle(vehicletype, Float
, Float:y, Float:z, Float:rotation, color1, color2, respawndelay, addsiren=0); and says that audio of the sirens plays on it, but the problem is when I try it in game nothing happens, here is the code and it comes with a warning as well (note that I have updated the includes etc)
The warning is this:
warning 202: number of arguments does not match definition < This code only goes for the CreateVehicle, as when I take the siren part off it works :/
I am trying to test out this new system native CreateVehicle(vehicletype, Float
![angry](images/smilies/mad.gif)
pawn Код:
CMD:sveh(playerid, params[])
{
new id, Float:pos[4], col[2];
if(sscanf(params, "iii", id, col[0], col[1])) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [vehicleid/destroy] [color1] [color2]");
if(id < 400 || id > 611) return SendClientMessage(playerid, COLOR_GREY, "Vehicles are between 400 and 611.");
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
CreateVehicle(id, pos[0], pos[1], pos[2], pos[3], col[0], col[1], 12000, 0);
return 1;
}
warning 202: number of arguments does not match definition < This code only goes for the CreateVehicle, as when I take the siren part off it works :/