Adding Func. in less lines possible
#2

pawn Код:
public IsAnsipaCar(carid)
{
    switch(carid)
    {
        case 23 .. 35: return 1;
        // another example:
        //case 45, 47, 78, 96, 105 .. 109: return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Adding Func. in less lines possible - by Stereotype - 06.08.2013, 12:44
Re: Adding Func. in less lines possible - by Konstantinos - 06.08.2013, 12:51
Re: Adding Func. in less lines possible - by Stereotype - 06.08.2013, 12:57
Re: Adding Func. in less lines possible - by Psymetrix - 06.08.2013, 19:45
Re: Adding Func. in less lines possible - by Misiur - 06.08.2013, 19:49
Re: Adding Func. in less lines possible - by Stereotype - 08.08.2013, 15:28
Re: Adding Func. in less lines possible - by Pottus - 08.08.2013, 17:35
Re: Adding Func. in less lines possible - by Stereotype - 09.08.2013, 11:32

Forum Jump:


Users browsing this thread: 2 Guest(s)