plugins/include/console.inc
changeset 473 ca547afaeb13
parent 472 3c7219ce3aa5
child 475 bb11d7eaae0f
     1.1 --- a/plugins/include/console.inc	Mon Feb 12 07:11:00 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Mon Feb 12 07:22:25 2007 +0000
     1.3 @@ -63,6 +63,7 @@
     1.4   * @param hasMax        Optional boolean that determines if the convar has a maximum value.
     1.5   * @param max           Maximum floating point value that the convar can have if hasMax is true.
     1.6   * @return				A handle to the newly created convar. If the convar already exists, INVALID_HANDLE is returned.
     1.7 + * @error               Convar name is blank or is the same as a console command.
     1.8   */
     1.9  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.10  
    1.11 @@ -90,7 +91,7 @@
    1.12   * @param convar        Handle to the convar.
    1.13   * @param callback      An OnConVarChanged function pointer.
    1.14   * @noreturn
    1.15 - * @error               Invalid or corrupt Handle.
    1.16 + * @error               Invalid or corrupt Handle or invalid callback function.
    1.17   */
    1.18  native HookConVarChange(Handle:convar, OnConVarChanged:callback);
    1.19  
    1.20 @@ -100,7 +101,7 @@
    1.21   * @param convar        Handle to the convar.
    1.22   * @param callback      An OnConVarChanged function pointer.
    1.23   * @noreturn
    1.24 - * @error               Invalid or corrupt Handle.
    1.25 + * @error               Invalid or corrupt Handle, invalid callback function, or no active hook on convar.
    1.26   */
    1.27  native UnhookConVarChange(Handle:convar, OnConVarChanged:callback);
    1.28