OK, i will be try, but in another plugin this function is compiling normally.
Quote:
Originally Posted by jim_yang
plus, switch() only support integar matching, and you should manage your if-else if statement like this
if( x > 1000 )
else if( x > 750 )
else if( x > 500 )
...
else if( x > 0 )
else
|
PHP Code:
switch(Value)
{
case 10 .. 20:
{
x = result
}
}
__________________