set_cvar_flags
- Синтаксис
-
native set_cvar_flags(const cvar[], flags);
Переменная | Описание |
---|---|
cvar |
Cvar name to remove flags from |
flags |
Bitflag sum of flags to set |
- Описание
- Sets specified flags to a cvar. The cvar is accessed by name.
- Пометка
-
Not permitted for the "amx_version", "amxmodx_version", "fun_version" and "sv_cheats" cvars.
- Пометка
-
For a list of possible flags see the FCVAR_* constants in amxconst.inc
- Пометка
-
This function just adds the flags using a bitwise-or operation. After it has run the flags may not exactly equal the specified bitflag sum.
- Пометка
-
Accessing a Cvar by name is slower than direct pointer access, which is why the otherwise equivalent set_pcvar_flags() function should be used instead.
- Возвращает
- 1 on success, 0 if cvar does not exist or is not permitted