21.09.2010, 17:02
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:
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)
{
//...
}