native bind_pcvar_string(pcvar, any:var[], varlen);
pcvar | Pointer to cvar |
var | Global array to keep updated |
varlen | Maximum length of string array |
Binds a cvar's string value to a global array. The array will then always contain the current cvar value as it is automatically kept up to date.
The array *has* to be a global or a static array. Local arrays created within functions can not be used for technical reasons.
Arrays can not be bound to multiple cvars.
This function has no return value.
If an invalid cvar pointer or variable is provided, an error will be thrown.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.