CreateVehicle error?
#6

Quote:
Originally Posted by Zeus666
Посмотреть сообщение
Can you give me an exemple?
Код:
#define TWO_TIRE_VEHICLE        1
#define SIX_TIRE_VEHICLE        2
#define NO_TIRE_VEHICLE         3
#define ENGINE_ONLY_VEHICLE     4

GetVehicleType(vehicleid)
{
    switch (vehicleid)
    {
        case 468:                                       return TWO_TIRE_VEHICLE;
        case 431, 455, 433, 544:                        return SIX_TIRE_VEHICLE;
        case 509, 510:                                  return NO_TIRE_VEHICLE;
        case 417, 453, 473, 484, 487, 497, 511, 592:    return ENGINE_ONLY_VEHICLE;
        default: return 0;
    }
}

// Where you want to use it
switch (GetVehicleType(GetPlayerVehicleID(playerid)))
{
    case TWO_TIRE_VEHICLE:
    {

    }
    case SIX_TIRE_VEHICLE:
    {

    }
    case NO_TIRE_VEHICLE:
    {

    }
    case ENGINE_ONLY_VEHICLE:
    {
        
    }
}
Reply


Messages In This Thread
CreateVehicle error? (Edited) - by Zeus666 - 17.07.2016, 12:55
Re: CreateVehicle error? - by Dayrion - 17.07.2016, 13:35
Re: CreateVehicle error? - by Zeus666 - 17.07.2016, 13:52
Re: CreateVehicle error? - by Vince - 17.07.2016, 14:37
Re: CreateVehicle error? - by Zeus666 - 17.07.2016, 14:51
Re: CreateVehicle error? - by Stinged - 17.07.2016, 15:01
Re: CreateVehicle error? - by iKarim - 17.07.2016, 15:11
Re: CreateVehicle error? - by Zeus666 - 17.07.2016, 16:34
Re: CreateVehicle error? - by Stinged - 17.07.2016, 16:57
Re: CreateVehicle error? - by Zeus666 - 17.07.2016, 18:46

Forum Jump:


Users browsing this thread: 2 Guest(s)