07.01.2015, 20:16
Код:
if(GetPlayerSkin(playerid) != 71, 282, 288, 283)
warning 206: redundant test: constant expression is non-zero
if(GetPlayerSkin(playerid) != 71, 282, 288, 283)
if((GetPlayerSkin(playerid) != 71) && (GetPlayerSkin(playerid) != 282) && (GetPlayerSkin(playerid) != 288) && (GetPlayerSkin(playerid) != 283))
switch(GetPlayerSkin(playerid))
{
case 71, 282, 288, 283:
{
// The skin is either 71, 282, 288 or 283
}
default:
{
// The skin is anything other than 71, 282, 288 or 283
}
}
if(GetPlayerSkin(playerid) != 71 && GetPlayerSkin(playerid) != 282 && GetPlayerSkin(playerid) != 283 && GetPlayerSkin(playerid) != 288)
{
// something
}