30.06.2016, 16:24
Quote:
That's not how bitflags work. Some of those numbers aren't even valid 32-bit integers. I guess you wanted to write them in binary form instead of hexadecimal.
|
I actually noticed my mistake right after I posted the reply. I just figured you guys weren't dumb enough to think I thought the prefix for a binary integer constant was 'x', so I didn't changed it. Instead I started working on a larger list, that I forgot to post.
pawn Код:
// Everybody
#define CMD_DEFAULT (0b10000000000000000000000000000000)
// Teams
#define CMD_TEAM_1 (0b01000000000000000000000000000000)
#define CMD_TEAM_2 (0b00100000000000000000000000000000)
// Admins
#define CMD_ADMIN_1 (0b00010000000000000000000000000000)
#define CMD_ADMIN_2 (0b00011000000000000000000000000000)
#define CMD_ADMIN_3 (0b00011100000000000000000000000000)
#define CMD_ADMIN_4 (0b00011110000000000000000000000000)
#define CMD_ADMIN_5 (0b00011111000000000000000000000000)
// VIP
#define CMD_VIP_1 (0b00000000100000000000000000000000)
#define CMD_VIP_2 (0b00000000110000000000000000000000)
#define CMD_VIP_3 (0b00000000111000000000000000000000)
// Jobs
#define CMD_MINERS (0b00000000000100000000000000000000)
#define CMD_CASHIER (0b00000000000010000000000000000000)
#define CMD_FISHER (0b00000000000001000000000000000000)
#define CMD_COP_1 (0b00000000000000100000000000000000)
#define CMD_COP_2 (0b00000000000000110000000000000000)
#define CMD_COP_3 (0b00000000000000111000000000000000)
// Classes
#define CMD_ARMY (0b0000000000000000110000000000000000)
#define CMD_MARINE (0b0000000000000000100000000000000000)
#define CMD_NAVY (0b0000000000000000010000000000000000)
#define CMD_GENERAL (0b0000000000000000111000000000000000)
// Almighty
#define CMD_OWNER (0b1111111111111111111111111111111111)