Making this code shorter
#1

Hi, how would it be possible to make this code shorter?
stock PlayerHasHeavyWeapon(playerid)
{
Код:
if (PlayerHasWeapon(playerid, 25) || PlayerHasWeapon(playerid, 27) || PlayerHasWeapon(playerid, 29) || PlayerHasWeapon(playerid, 30) || PlayerHasWeapon(playerid, 31) || PlayerHasWeapon(playerid, 33) || PlayerHasWeapon(playerid, 34))
Reply


Messages In This Thread
Making this code shorter - by GoldenLion - 11.07.2016, 17:01
Re: Making this code shorter - by Mencent - 11.07.2016, 17:05
Re: Making this code shorter - by GoldenLion - 11.07.2016, 17:10
Re: Making this code shorter - by Vince - 11.07.2016, 17:11
Re: Making this code shorter - by Nero_3D - 11.07.2016, 17:11
Re: Making this code shorter - by OneDay - 11.07.2016, 17:45
Re: Making this code shorter - by Mencent - 11.07.2016, 17:58
Re: Making this code shorter - by MayaEU - 11.07.2016, 17:58
Re: Making this code shorter - by DarkSkull - 11.07.2016, 18:36
Re: Making this code shorter - by Stinged - 11.07.2016, 19:09

Forum Jump:


Users browsing this thread: 2 Guest(s)