A little error?
#1

pawn Код:
if(GetPlayerSkin(playerid)=288) || (GetPlayerSkin(playerid)=280) || (GetPlayerSkin(playerid)=281) || (GetPlayerSkin(playerid)=282) || (GetPlayerSkin(playerid)=283) || (GetPlayerSkin(playerid)=284) || (GetPlayerSkin(playerid)=285)
Getting five errors on the line above:
pawn Код:
warning 211: possibly unintended assignment
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Thanks for helps.
Reply
#2

pawn Код:
new skin = GetPlayerSkin(playerid);
if ((skin > 279 && skin < 286) || skin == 288)
Reply
#3

I'd like to use SWITCH.

pawn Код:
switch ( GetPlayerSkin( playerid ) )
{
    case 270 .. 285, 288 :
    {
        // Code
    }
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)