Hi! I'm getting
warning 213: tag mismatch if i using enum like below:
PHP Code:
enum eTheBestEnumeration{
ENUM_ZERO = 0,
ENUM_ONE,
ENUM_TWO
}
// .......
public somecmd(executor) {
new arg[2]
read_argv(1, arg, charsmax(arg))
new iArg = clamp(str_to_num(arg), 0, 2)
if(iArg == ENUM_ZERO) {} //insert useless code here
else if(iArg == ENUM_ONE) {} //insert useless code here
else if(iArg == ENUM_TWO) {} //insert useless code here
// I KNOW HERE MUST BE USED SWITCH INSTEAD OF IFS
// And it works perfectly with switches
}
}
How can it be fixed?