Signature
native set_pcvar_flags(pcvar, flags);
Description
Sets specified flags to a cvar via direct pointer access.
Notes
- 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.
Parameters
- pcvar — Pointer to cvar to set flags of
- flags — Bitflag sum of flags to set
Returns
1 on success, 0 if cvar does not exist or is not permitted
Errors
-
If an invalid cvar pointer is provided, an error will be
thrown.