diff -r d5cc8d0fa899 -r 9b8bf8377d84 plugins/include/console.inc --- a/plugins/include/console.inc Sat Apr 14 04:27:47 2007 +0000 +++ b/plugins/include/console.inc Sat Apr 14 04:49:08 2007 +0000 @@ -19,6 +19,14 @@ #define _console_included /** + * Console variable query helper values. + */ +enum QueryCookie +{ + QUERYCOOKIE_FAILED = 0, +} + +/** * Console variable query result values. */ enum ConVarQueryResult @@ -447,6 +455,7 @@ * @param name Name of client convar to query. * @param callback A function to use as a callback when the query has finished. * @param value Optional value to pass to the callback function. - * @return A cookie that uniquely identifies the query. + * @return A cookie that uniquely identifies the query. + * Returns QUERYCOOKIE_FAILED on failure, such as when used on a bot. */ native QueryCookie:QueryClientConVar(client, const String:cvarName[], ConVarQueryFinished:callback, any:value=0);