Raised This Month: $ Target: $400
 0% 

Solved Bitwise with enum


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-30-2020 , 12:14   Bitwise with enum
Reply With Quote #1

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 001expected 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
__________________
My plugin:

Last edited by Celena Luna; 05-31-2020 at 00:19.
Celena Luna is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode