11.02.2015, 18:43
pawn Код:
IsMaxDamageWep(weaponid);
{
new rst = -1;
switch(weaponid)
{
case 24, 27, 30, 31, 32, 33 ,34, 35, 38;
{
rst = 1;
}
else
{
rst = 0;
}
}
return rst;
}
IsMaxDamageWep(weaponid);
{
new rst = -1;
switch(weaponid)
{
case 24, 27, 30, 31, 32, 33 ,34, 35, 38;
{
rst = 1;
}
else
{
rst = 0;
}
}
return rst;
}
IsMaxDamageWep(weaponid);
{
new rst = -1;
switch(weaponid)
{
case 24, 27, 30, 31, 32, 33, 34, 35, 38: rst = 1;
default: rst = 0;
}
return rst;
}
Use "case:" not "case;", and instead of "else" use "default:".
pawn Код:
|
IsMaxDamageWep(weaponid)
{
new rst = -1;
switch(weaponid)
{
case 24, 27, 30, 31..35, 38: rst = 1;
default: rst = 0;
}
return rst;
}