[Help]How to make this code shorter
#2

PAWN syntax does not work like that, you can do, however..

Код:
classid == 0 || classid == 1 || classid == 2
or

Код:
classid >= 0 && classid <= 2
or even

Код:
0 <= classid <= 2
or work with switches

pawn Код:
switch(classid)
{

     case 0 .. 2:
     {
          //blabla
     }
     case 3 .. 4:
     {
          //blabla
     }
}
Reply


Messages In This Thread
[Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:37
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 14:40
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:43
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 14:52
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:57
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 15:10
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 15:15
Re: [Help]How to make this code shorter - by ColeMiner - 14.02.2014, 15:17
Re: [Help]How to make this code shorter - by DaniceMcHarley - 14.02.2014, 15:20
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)