Mult pickups
#3

Quote:
Originally Posted by Antonio144
Посмотреть сообщение
pawn Код:
for(new i=0; i<sizeof(nospickup);i++) //You can use foreach instead of this
{
    if(pickupid == nospickup[i])
    {
        //rest of the code
    }
}
You do realise foreach can't be used for EVERY loop - only ones that have 'registered' iterators, such as players? You can make your own iterators for any IDs though, but in this case that'd be silly, as it's not a sparse array.
Reply


Messages In This Thread
Mult pickups - by TomRedlake - 04.07.2013, 18:10
Re: Mult pickups - by Antonio144 - 04.07.2013, 19:08
Re: Mult pickups - by MP2 - 04.07.2013, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)