[Include] Foreach Extended
#5

But replacing Iter_Remove(Vehicle, vehicleid); with a safe remove cleans up just as well right? Let me check...

btw:
pawn Код:
stock ForeachExt_DestroyVehicle(vehicleid)
{
    new success = DestroyVehicle(vehicleid);
    if(success)
    {
        Iter_Remove(Vehicle, vehicleid);
    }
    return success;
}
So if, the success is false, or 0, return -1? Why?

Oh I see I think, same concept
Reply


Messages In This Thread
Foreach Extended - by Chenko - 09.10.2014, 01:05
Re: Foreach Extended - by Pottus - 09.10.2014, 02:35
Re: Foreach Extended - by Crayder - 09.10.2014, 02:53
Re: Foreach Extended - by Pottus - 09.10.2014, 02:56
Re: Foreach Extended - by Crayder - 09.10.2014, 02:57
Re: Foreach Extended - by Chenko - 09.10.2014, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)