SA-MP Forums Archive
Pickup not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pickup not working (/showthread.php?tid=504449)



Pickup not working - [IND]Crazy - 04.04.2014

Solved


Re: Pickup not working - Vince - 04.04.2014

I'm not entirely sure why you aren't creating one large array with 60 cells instead of several smaller ones.
You need a loop like this:

pawn Код:
for(new i; i < sizeof(ArmorPick); i++)
{
    if(pickupid == ArmorPick[i])
    {
        // SetPlayerArmour etc
        break;
    }
}



Re: Pickup not working - [IND]Crazy - 04.04.2014

thanks worked
rep ++