CreateVehicle
#1

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)

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;
}
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 :/
Reply


Messages In This Thread
CreateVehicle - by McGuiness - 02.05.2015, 16:18
Re: CreateVehicle - by Mencent - 02.05.2015, 16:19
Re: CreateVehicle - by ihatetn931 - 02.05.2015, 16:23
Re: CreateVehicle - by McGuiness - 02.05.2015, 16:24
Re: CreateVehicle - by Mencent - 02.05.2015, 16:25
Re: CreateVehicle - by ihatetn931 - 02.05.2015, 16:25
Re: CreateVehicle - by McGuiness - 02.05.2015, 16:28
Re: CreateVehicle - by McGuiness - 02.05.2015, 16:30
Re: CreateVehicle - by Mencent - 02.05.2015, 16:31
Re: CreateVehicle - by McGuiness - 02.05.2015, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)