#2

Add to the conditional statement a another check by seperating each conditional statement with || or &&
like so
pawn Код:
if(GetPlayerSkin (playerid) == 4 || GetPlayerSkin (playerid) == 5)
This will check if the player skin id equals to 4 OR to 5

|| is OR
&& is AND
So when you use
skin==4 || skin==5
it means if the skin equals to 4 or skin equals to 5 then do this

using && instead of || will change the condition from OR to AND

you can add as many conditions as you want as long as you seperate them by the OR || gate or AND && gate
Reply


Messages In This Thread
Skin - by nezo2001 - 13.12.2014, 13:35
Re: Skin - by Kaperstone - 13.12.2014, 13:41
Re: Skin - by nezo2001 - 13.12.2014, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)