New Function, would it work?
#5

No, it wont:

1. GetPlayerWeapon returns the id of the players current weapon with only one parameter. Weapons does not fit in there (https://sampwiki.blast.hk/wiki/GetPlayerWeapon)

2. Your new Weapons = 1 || 2 || 3 ... will just be = 1, becuase 1 <or> 2 <or> 3 ... is true(1)


Do it like [XST]O_x or like this:

pawn Код:
if(GetPlayerWeapon(playerid) > 0 && GetPlayerWeapon(playerid) < 46)
{
    //...
}
Reply


Messages In This Thread
New Function, would it work? - by Ash. - 21.09.2010, 16:53
Re: New Function, would it work? - by [XST]O_x - 21.09.2010, 16:57
Re: New Function, would it work? - by Sergei - 21.09.2010, 16:58
Re: New Function, would it work? - by Ash. - 21.09.2010, 17:01
Re: New Function, would it work? - by Mauzen - 21.09.2010, 17:02
Re: New Function, would it work? - by [XST]O_x - 21.09.2010, 17:02
Re: New Function, would it work? - by Ash. - 21.09.2010, 17:09
Re: New Function, would it work? - by Slice - 21.09.2010, 17:12
Re: New Function, would it work? - by Ash. - 21.09.2010, 17:14
Re: New Function, would it work? - by Slice - 21.09.2010, 17:18

Forum Jump:


Users browsing this thread: 3 Guest(s)