Could someone assist me? (Simple function issue)
#4

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
Use "case:" not "case;", and instead of "else" use "default:".
pawn Код:
IsMaxDamageWep(weaponid);
{
    new rst = -1;
    switch(weaponid)
    {
        case 24, 27, 30, 31, 32, 33, 34, 35, 38: rst = 1;
        default: rst = 0;
    }
    return rst;
}
Lol you forgot something...

pawn Код:
IsMaxDamageWep(weaponid)
{
    new rst = -1;
    switch(weaponid)
    {
        case 24, 27, 30, 31..35, 38: rst = 1;
        default: rst = 0;
    }
    return rst;
}
Reply


Messages In This Thread
Could someone assist me? (Simple function issue) - by Dokins - 11.02.2015, 18:43
Re: Could someone assist me? (Simple function issue) - by HazardouS - 11.02.2015, 19:10
Re: Could someone assist me? (Simple function issue) - by CalvinC - 11.02.2015, 21:18
Re: Could someone assist me? (Simple function issue) - by Kar - 11.02.2015, 22:13

Forum Jump:


Users browsing this thread: 3 Guest(s)