C:\Documents and Settings\Admin\Desktop\VietOl 1.2\gamemodes\vnit.pwn(21533) : warning 206: redundant test: constant expression is non-zero
if ((oldkeys & KEY_FIRE) && (newkeys & KEY_CROUCH))
{
new weapon = GetPlayerWeapon(playerid);
if(weapon == 24,25,27,22)
{
ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
//GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1);
}
}
if ((oldkeys == KEY_FIRE) && (newkeys == KEY_CROUCH))
{
new weapon = GetPlayerWeapon(playerid);
if(weapon == 24,25,27,22)
{
ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
//GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1);
}
}
PHP код:
|
switch(weapon)
{
case 24, 25, 27, 22:
{
ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
//GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1);
}
}