[Help] Mixing vehicles ID
#3

i'm using vehicle id's for index, and foreach. it's working well so far

i mean:
Код:
new vehicleid = CreateVehicle(...);
if(!Iter_Contains(Vehicles, vehicleid)
{
    Iter_Add(Vehicles, vehicleid);
}
Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(Vehicle[vehicleid][vType] == VEHICLE_TYPE_MISSION)
{
    ....
}
but you have to skip index 0
Reply


Messages In This Thread
[Help] Mixing vehicles ID - by David (Sabljak) - 17.03.2018, 18:53
Re: [Help] Mixing vehicles ID - by David (Sabljak) - 17.03.2018, 21:43
Re: [Help] Mixing vehicles ID - by m4karow - 17.03.2018, 22:16
Re: [Help] Mixing vehicles ID - by m1kas - 17.03.2018, 22:35
Re: [Help] Mixing vehicles ID - by David (Sabljak) - 19.03.2018, 21:39

Forum Jump:


Users browsing this thread: 2 Guest(s)