Difference between QueryClientConVar and GetClientInfo
What is the difference between QueryClientConVar and GetClientInfo and?
I'm trying to understand the difference between the two, and possibly the underlying difference. API QueryClientConVar API GetClientInfo Source for QueryClientConVar PHP Code:
PHP Code:
GetClientInfo calls GetClientConVarValue without callback |
Re: Difference between QueryClientConVar and GetClientInfo
Maybe GetClientInfo works only with replicated (or with FCVAR_USERINFO flag) convars while QueryClientConVar allows you to check most client convars?
EDIT: So, i think, better to use GetClientInfo for convars with FCVAR_USERINFO flag (ex. "cl_language", "cl_cmdrate" etc.) and QueryClientConVar in every other case. Also, i think QueryClientConVar uses callback because this function is delayed (like query to Database) and can return error. while GetClientInfo can get prefetched (not sure 100%) values, so no callback needed. |
| All times are GMT -4. The time now is 13:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.