Weapon help
#6

Just checking inbetween the values would not work here, because there are values inbetween the ranges you have listed which aren't actually weapons.

Код:
new example = 57;

	if (example >= 0 && example <= 46 && example != 19 && example != 20 && example != 21)
	{
		//variable holds valid weaponid
	}
	
	else
	{
		//variable does not hold valid weaponid
	}
Reply


Messages In This Thread
Weapon help - by silverms - 14.04.2017, 17:33
Re: Weapon help - by AndreiWow - 14.04.2017, 17:40
Re: Weapon help - by silverms - 14.04.2017, 17:51
Re: Weapon help - by ISmokezU - 14.04.2017, 18:01
Re: Weapon help - by AndreiWow - 14.04.2017, 18:06
Re: Weapon help - by LEOTorres - 14.04.2017, 18:11

Forum Jump:


Users browsing this thread: 2 Guest(s)