Vehicle ID
#1

pawn Код:
CMD:createveh(playerid, params[])
{
    new
        vehid,colorid1,colorid2;
    new
        Float:x,Float:y,Float:z;
    if (sscanf(params, "iii", vehid, colorid1, colorid2)) SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createveh [Vehicle ID] [Color 1 ID] [Color 2 ID]");
    else if (vehid== INVALID_VEHICLE_ID) SendClientMessage(playerid, 0xFF0000AA, "Invalid Vehicle ID");// needs Fix
    else
    {
        GetPlayerPos(playerid, x, y, z);
        CreateVehicle(vehid, x+1, y+1, z, 0, colorid1, colorid2, 1);
        SetVehicleParamsEx(??, 0, 0, 0, 0, 0, 0, 0);
    }
    return 1;
}
what should I type instead of the "??" in SetVehicleParamsEx, I want it to apply thoses status on the vehicle created using /createveh
and what's meant by objective (last param in SetVehicleParamEx
thanks
Reply


Messages In This Thread
Vehicle ID - by Sarra - 03.08.2014, 18:18
Re: Vehicle ID - by Stanford - 03.08.2014, 18:21
Re: Vehicle ID - by Sarra - 03.08.2014, 18:27
AW: Vehicle ID - by Stanford - 03.08.2014, 18:33
Re: Vehicle ID - by Sarra - 03.08.2014, 18:38
Re: Vehicle ID - by Stanford - 03.08.2014, 18:39
Re: Vehicle ID - by dirigent00 - 03.08.2014, 18:39
Re: Vehicle ID - by Stanford - 03.08.2014, 18:43
Re: Vehicle ID - by dirigent00 - 03.08.2014, 18:47
Re: Vehicle ID - by Sarra - 03.08.2014, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)