plugins/include/console.inc
changeset 697 9b8bf8377d84
parent 696 d5cc8d0fa899
child 708 8383bd9c7092
     1.1 --- a/plugins/include/console.inc	Sat Apr 14 04:27:47 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Sat Apr 14 04:49:08 2007 +0000
     1.3 @@ -19,6 +19,14 @@
     1.4  #define _console_included
     1.5  
     1.6  /**
     1.7 + * Console variable query helper values.
     1.8 + */
     1.9 +enum QueryCookie
    1.10 +{
    1.11 +	QUERYCOOKIE_FAILED = 0,
    1.12 +}
    1.13 +
    1.14 +/**
    1.15   * Console variable query result values.
    1.16   */
    1.17  enum ConVarQueryResult
    1.18 @@ -447,6 +455,7 @@
    1.19   * @param name			Name of client convar to query.
    1.20   * @param callback		A function to use as a callback when the query has finished.
    1.21   * @param value			Optional value to pass to the callback function.
    1.22 - * @return				A cookie that uniquely identifies the query.
    1.23 + * @return				A cookie that uniquely identifies the query. 
    1.24 + *						Returns QUERYCOOKIE_FAILED on failure, such as when used on a bot.
    1.25   */
    1.26  native QueryCookie:QueryClientConVar(client, const String:cvarName[], ConVarQueryFinished:callback, any:value=0);