checking arrays
#1

i want to know if there is any way to check all same variables within arrays, dont know how to tell but there is code part:
Код:
if(pickupid==ArmourPickup[0]||ArmourPickup[1]||ArmourPickup[2]||ArmourPickup[3]||ArmourPickup[4]||ArmourPickup[5]||ArmourPickup[6]||ArmourPickup[7])
so is there any shorter to check if this is ANY ArmourPickup
Reply


Messages In This Thread
checking arrays - by oggylt - 07.04.2010, 15:37
Re: checking arrays - by ZeRo_HUN - 07.04.2010, 15:42
Re: checking arrays - by oggylt - 07.04.2010, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)