Foreach with iterator
#3

Did you add Iter_Init(Vehicles); in OnGameModeInit?

Also, you can use this:

PHP код:
foreach(new iVehicles[playerid])
{
             
printf("%d %d",iplayerid);
             
printf("[debug] destroying vehicle %i"VehicleInfo[i][vID]);
             
DestroyVehicle(VehicleInfo[i][vID]);
             
Iter_SafeRemove(Vehicles[playerid], ii);

Reply


Messages In This Thread
Foreach with iterator - by GospodinX - 22.08.2018, 12:56
Re: Foreach with iterator - by GospodinX - 24.08.2018, 09:28
Re: Foreach with iterator - by None1337 - 24.08.2018, 11:10
Re: Foreach with iterator - by GospodinX - 24.08.2018, 11:35
Re: Foreach with iterator - by GospodinX - 24.08.2018, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)