converting normal loop to foreach.
#1

Hello every one.
How do i convert this normal loop to foreach ?
pawn Код:
for(new x; x<MAX_PICKUPS; x++)
                    {
                    if(IsPlayerInRangeOfPoint(i,1,NITRO[x][Pos][0],NITRO[x][Pos][1],NITRO[x][Pos][2]))
                    {
                        if(IsPlayerInAnyVehicle(i))
                            {
                                AddVehicleComponent(GetPlayerVehicleID(i),1010);
                            }
                    }
                    }
Thanks for reading !
Reply


Messages In This Thread
converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 08:55
Re: converting normal loop to foreach. - by Konstantinos - 06.01.2013, 08:58
Re: converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 09:05
Re: converting normal loop to foreach. - by Konstantinos - 06.01.2013, 09:11
Re: converting normal loop to foreach. - by [D]ry[D]esert - 06.01.2013, 09:17

Forum Jump:


Users browsing this thread: 3 Guest(s)