Efficiency
#1

I wanted some additional opinions about this, perhaps a few sensible people could give me some help!

I currently have this code:

pawn Код:
stock bool:IsTruckerSkin(skinid)
{
    switch(skinid)
    {
        case 4, 5, 24, 34, 73, 129 .. 134, 159, 161, 162, 182, 191, 196 .. 198, 201, 202: return true;
    }
}
Would it be better to use this, or perhaps make an array of such skin ID's?

EDIT: And if I were to make an array, how would I use it? Probably an idiot question, but my mind isn't working right tonight!
Reply


Messages In This Thread
Efficiency - by Scenario - 17.01.2012, 01:32
Re: Efficiency - by 2KY - 17.01.2012, 01:37
Re: Efficiency - by Lorenc_ - 17.01.2012, 01:46
Re: Efficiency - by 2KY - 17.01.2012, 01:47
Re: Efficiency - by Scenario - 17.01.2012, 01:48
Re: Efficiency - by Lorenc_ - 17.01.2012, 01:56
Re: Efficiency - by -Prodigy- - 17.01.2012, 01:56
Re: Efficiency - by Scenario - 17.01.2012, 02:17
Re: Efficiency - by Kar - 17.01.2012, 02:45
Re: Efficiency - by Scenario - 17.01.2012, 02:50

Forum Jump:


Users browsing this thread: 3 Guest(s)