set_pcvar_flags

Синтаксис

native set_pcvar_flags(pcvar, flags);

Употреба

pcvar
Pointer to cvar to set flags of
flags
Bitflag sum of flags to set

Описание

Sets specified flags to a cvar via direct pointer access.

Забележка

For a list of possible flags see the FCVAR_* constants in amxconst.inc

Забележка

This function directly sets the provided bitflag, unlike set_cvar_flags
which adds them using a bitwise OR.

Връщаща стойност

1 on success, 0 if cvar does not exist or is not permitted

Грешка

If an invalid cvar pointer is provided, an error will be
thrown.