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

Ok... i got this car control mod for 0.3c and thats all good but its options were "Engine, Bonnet, trunk/boot, lights, alarm and objective"., all i wanted out of this was the Bonnet Trunk/boot, Engine and the lights the rest i removed after i finished removing all that crap i then got these errors
Код:
(43) : warning 202: number of arguments does not match definition
(43) : warning 202: number of arguments does not match definition
(43) : warning 202: number of arguments does not match definition
-------------------------------------------------------------------------------------
Line 43:					GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
-------------------------------------------------------------------------------------
also
Код:
(44) : warning 202: number of arguments does not match definition
(44) : warning 202: number of arguments does not match definition
(44) : warning 202: number of arguments does not match definition
-------------------------------------------------------------------------------------
Line 44:					SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,bonnet,boot);
-------------------------------------------------------------------------------------
also
Код:
(50) : warning 202: number of arguments does not match definition
(50) : warning 202: number of arguments does not match definition
(50) : warning 202: number of arguments does not match definition
-------------------------------------------------------------------------------------
Line 50:					GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
-------------------------------------------------------------------------------------
also
Код:
(51) : warning 202: number of arguments does not match definition
(51) : warning 202: number of arguments does not match definition
(51) : warning 202: number of arguments does not match definition
-------------------------------------------------------------------------------------
Line 51:					SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,bonnet,boot);
-------------------------------------------------------------------------------------
and so on.....
i might as well just post the entire script i have :P
pawn Код:
#include <a_samp>
#include <zcmd>

new EngineStatus[MAX_PLAYERS], LightsStatus[MAX_PLAYERS], BonnetStatus[MAX_PLAYERS], BootStatus[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Vehicle Control System Loaded");
    print(" Coded by Auxxx");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    print("\n--------------------------------------");
    print(" Vehicle Control System Un-Loaded");
    print(" Coded by Auxxx");
    print("--------------------------------------\n");
    return 1;
}

public OnGameModeInit()
{
    ManualVehicleEngineAndLights();
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

CMD:veh(playerid, params[])
{
    new engine,lights,bonnet,boot;
    new veh = GetPlayerVehicleID(playerid);
    if(strcmp(params, "Engine", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(veh != INVALID_VEHICLE_ID)
            {
                if(EngineStatus[playerid] == 0)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,lights,bonnet,boot);
                    EngineStatus[playerid] = 1;
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's engine {2F991A}on!");
                }
                else if(EngineStatus[playerid] == 1)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,lights,bonnet,boot);
                    EngineStatus[playerid] = 0;
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's engine {E31919}off!");
                }
            }
        }
        else {
        SendClientMessage(playerid, 0x00FF00FF, "{E31919}You are not in a vehicle!");
        }
    }
    else if(strcmp(params, "Lights", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(veh != INVALID_VEHICLE_ID)
            {
                if(LightsStatus[playerid] == 0)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,bonnet,boot);
                    LightsStatus[playerid] = 1;
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's lights {2F991A}on!");
                }
                else if(LightsStatus[playerid] == 1)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,bonnet,boot);
                    LightsStatus[playerid] = 0;
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've turned the vehicle's lights {E31919}off!");
                }
            }
        }
        else {
        SendClientMessage(playerid, 0x00FF00FF, "{E31919}You are not in a vehicle!");
        }
    }
    else if(strcmp(params, "Bonnet", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(veh != INVALID_VEHICLE_ID)
            {
                if(BonnetStatus[playerid] == 0)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_ON,boot);
                    BonnetStatus[playerid] = 1;
                    SendClientMessage(playerid, 0xFFFFFFAA, "The vehicle's bonnet is now {2F991A}open!");
                }
                else if(BonnetStatus[playerid] == 1)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,lights,VEHICLE_PARAMS_OFF,boot);
                    BonnetStatus[playerid] = 0;
                    SendClientMessage(playerid, 0xFFFFFFAA, "The vehicle's bonnet is now {E31919}closed!");
                }
            }
        }
        else {
        SendClientMessage(playerid, 0x00FF00FF, "{E31919}You are not in a vehicle!");
        }
    }
    else if(strcmp(params, "Boot", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(veh != INVALID_VEHICLE_ID)
            {
                if(BootStatus[playerid] == 0)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,lights,bonnet,VEHICLE_PARAMS_ON);
                    BootStatus[playerid] = 1;
                    SendClientMessage(playerid, 0xFFFFFFAA, "The vehicle's boot is now {2F991A}open!");
                }
                else if(BootStatus[playerid] == 1)
                {
                    GetVehicleParamsEx(veh,engine,lights,bonnet,boot);
                    SetVehicleParamsEx(veh,engine,lights,bonnet,VEHICLE_PARAMS_OFF);
                    BootStatus[playerid] = 0;
                    SendClientMessage(playerid, 0xFFFFFFAA, "The vehicle's boot is now {E31919}closed!");
                }
            }
        }
        else {
        SendClientMessage(playerid, 0x00FF00FF, "{E31919}You are not in a vehicle!");
        }
    }
    else SendClientMessage(playerid, 0xFFFFFFAA, "SYNTAX: /veh [function]"),
    SendClientMessage(playerid, 0xFFFFFFAA, "Functions: Engine, Lights, Bonnet, Boot");
    return 1;
}
Any Help is HUGELY appreciated, Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)