Creates a new console variable.
ConVar CreateConVar(const char[] name, const char[] defaultValue, const char[] description, int flags, bool hasMin, float min, bool hasMax, float max)
Name of new convar.
String containing the default value of new convar.
Optional description of the convar.
Optional bitstring of flags determining how the convar should be handled. See FCVAR_* constants for more details.
Optional boolean that determines if the convar has a minimum value.
Minimum floating point value that the convar can have if hasMin is true.
Optional boolean that determines if the convar has a maximum value.
Maximum floating point value that the convar can have if hasMax is true.
A handle to the newly created convar. If the convar already exists, a handle to it will still be returned.
Convar name is blank or is the same as an existing console command.
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.