Raised This Month: $ Target: $400
 0% 

Printing query_client_cvar values


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 06-26-2007 , 01:31   Re: Printing query_client_cvar values
Reply With Quote #4

Quote:
Originally Posted by Vet View Post
So is there a way to tell when the query function has gotten the info from the client? Or do you just stick in a task and guess at the time?
I'm not sure if I understand your question, but you can't predict when it will be executed. When the server receives the client's cvar value, that is when the query_results() function will be called.

In this case you could actually record the time it takes to get the client's cvar value if you really wanted, but I don't think that's actually valuable information.

If you'd like to know when the variable contains all the info, or when all of the clients' cvars have been recorded, you can just add another global variable to count how many times query_results() has been executed for each client. Then check if every client has had it executed 3 times (3 different cvars).

Last edited by stupok; 06-26-2007 at 01:34.
stupok is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode