I was trying to use enum to setup bitwise for some custom ent flags but I got an error when compiling
Error
PHP Code:
Main_NPC.sma(45) : error 001: expected token: "{", but found "-label-"
line 45-51:
PHP Code:
enum ( <<=1) _: ZOMBIE_FLAG
{
ZB_STATE_IDLE = 1,
ZB_STATE_CAUTION,
ZB_STATE_ATTACKED,
ZB_STATE_CHASING
}
I copied the similair one from
[TUT] Bits, Bit-fields, and Bit-wise Operators
How can I fix it? I am using Amx 1.10
__________________