AMX Mod X API Documentation

Signature
native bind_pcvar_string(pcvar, any:var[], varlen);
Description

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.

Notes
  • 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.
Parameters
  • pcvar Pointer to cvar
  • var Global array to keep updated
  • varlen Maximum length of string array
No return value
Errors
  • If an invalid cvar pointer or variable is provided, an error

    will be thrown.

Назад
Верх