1.1 --- a/plugins/include/console.inc Tue Mar 06 07:38:19 2007 +0000
1.2 +++ b/plugins/include/console.inc Tue Mar 06 23:59:25 2007 +0000
1.3 @@ -209,7 +209,7 @@
1.4 *
1.5 * @param name Name of new convar.
1.6 * @param defaultValue String containing the default value of new convar.
1.7 - * @param helpText Optional description of the convar.
1.8 + * @param description Optional description of the convar.
1.9 * @param flags Optional bitstring of flags determining how the convar should be handled. See FCVAR_* constants for more details.
1.10 * @param hasMin Optional boolean that determines if the convar has a minimum value.
1.11 * @param min Minimum floating point value that the convar can have if hasMin is true.
1.12 @@ -218,7 +218,7 @@
1.13 * @return A handle to the newly created convar. If the convar already exists, INVALID_HANDLE is returned.
1.14 * @error Convar name is blank or is the same as an existing console command.
1.15 */
1.16 -native Handle:CreateConVar(const String:name[], const String:defaultValue[], const String:helpText[]="", flags=0, bool:hasMin=false, Float:min=0.0, bool:hasMax=false, Float:max=0.0);
1.17 +native Handle:CreateConVar(const String:name[], const String:defaultValue[], const String:description[]="", flags=0, bool:hasMin=false, Float:min=0.0, bool:hasMax=false, Float:max=0.0);
1.18
1.19 /**
1.20 * Searches for a console variable.
1.21 @@ -236,7 +236,7 @@
1.22 * @param newValue String containing the new value of the convar.
1.23 * @noreturn
1.24 */
1.25 -functag OnConVarChanged public(Handle:convar, const String:oldValue[], const String:newValue[]);
1.26 +functag ConVarChanged public(Handle:convar, const String:oldValue[], const String:newValue[]);
1.27
1.28 /**
1.29 * Creates a hook for when a console variable's value is changed.
1.30 @@ -246,7 +246,7 @@
1.31 * @noreturn
1.32 * @error Invalid or corrupt Handle or invalid callback function.
1.33 */
1.34 -native HookConVarChange(Handle:convar, OnConVarChanged:callback);
1.35 +native HookConVarChange(Handle:convar, ConVarChanged:callback);
1.36
1.37 /**
1.38 * Removes a hook for when a console variable's value is changed.
1.39 @@ -256,7 +256,7 @@
1.40 * @noreturn
1.41 * @error Invalid or corrupt Handle, invalid callback function, or no active hook on convar.
1.42 */
1.43 -native UnhookConVarChange(Handle:convar, OnConVarChanged:callback);
1.44 +native UnhookConVarChange(Handle:convar, ConVarChanged:callback);
1.45
1.46 /**
1.47 * Returns the boolean value of a console variable.