Faction Vehicles
#10

No, the code I gave you should have worked. Let me try to explain the code as best I can:

pawn Код:
IsACopVehicle(carid)
{
    for(new v = 0; v < sizeof(CopVehicle); v++) // This will loop through all your CopVehicles.
    {
        if(carid == CopVehicle[v]) return 1; // If the vehicleid is defined by CopVehicle, it will return 1.
    }
    return 0; // If it is not, it will return 0.
}
Reply


Messages In This Thread
Faction Vehicles - by Facerafter - 05.05.2013, 17:51
Re: Faction Vehicles - by BossZk - 05.05.2013, 18:11
Re: Faction Vehicles - by MattyG - 05.05.2013, 18:17
Re: Faction Vehicles - by Facerafter - 05.05.2013, 18:27
Re: Faction Vehicles - by MattyG - 05.05.2013, 18:32
Re: Faction Vehicles - by J4mmyHD - 05.05.2013, 18:45
Re: Faction Vehicles - by Facerafter - 05.05.2013, 18:51
Re: Faction Vehicles - by JJB562 - 05.05.2013, 20:55
Re: Faction Vehicles - by Facerafter - 05.05.2013, 21:40
Re: Faction Vehicles - by JJB562 - 05.05.2013, 22:50

Forum Jump:


Users browsing this thread: 1 Guest(s)