07.04.2010, 15:37
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:
so is there any shorter to check if this is ANY ArmourPickup
Код:
if(pickupid==ArmourPickup[0]||ArmourPickup[1]||ArmourPickup[2]||ArmourPickup[3]||ArmourPickup[4]||ArmourPickup[5]||ArmourPickup[6]||ArmourPickup[7])