how can i...
#2

I guess carids is wrong, because if you add 4 cars than cars id should be 402,403,404,405,not 419,475...

I suggest you use like this:
pawn Код:
new GangCars2[4];

    GangCars2[0] = AddStaticVehicleEx(402,1248.7694,-803.7722,83.9723,180.5839,0,0,-1); // YAKUZA
    GangCars2[1] = AddStaticVehicleEx(419,1254.5103,-804.0104,83.9380,179.4227,0,0,-1); // YAKUZA
    GangCars2[2] = AddStaticVehicleEx(475,1243.2533,-803.4598,83.9430,180.1993,0,0,-1); // YAKUZA
    GangCars2[3] = AddStaticVehicleEx(480,1242.6583,-811.7627,83.9183,267.9681,0,0,-1); // YAKUZA

public IsAGangCar2(carid)
{
    for(new i = 0; i < sizeof(GangCars2); i++)
    {
        if(carid == GangCars2[i]) { return 1; }
    }
    return 0;
}
Reply


Messages In This Thread
how can i... - by erikhenri - 03.08.2010, 11:10
Re: how can i... - by ikey07 - 03.08.2010, 11:55
Re: how can i... - by erikhenri - 03.08.2010, 11:56
Re: how can i... - by erikhenri - 03.08.2010, 12:01
Re: how can i... - by Conroy - 03.08.2010, 12:03
Re: how can i... - by erikhenri - 03.08.2010, 12:09
Re: how can i... - by erikhenri - 03.08.2010, 13:06
Re: how can i... - by erikhenri - 03.08.2010, 15:02
Re: how can i... - by erikhenri - 03.08.2010, 19:39
Re: how can i... - by ikey07 - 03.08.2010, 21:05

Forum Jump:


Users browsing this thread: 2 Guest(s)