AMX Mod X API Documentation

Signature
native read_flags(const flags[]);
Description

Converts a flag string to a bitflag value.

Notes
  • Example: The string "abcd" represents the sum of 1, 2, 4, and 8 - or

    (1<<0)|(1<<1)|(1<<2)|(1<<3). The function will return 15.

Parameters
  • flags Flag string to convert
Returns

Bitflag value

Назад
Верх