Reson has been found:
In AMXX1.70 query_client_cvar() use a new function to query client cvar it is different with 1.60, this new function only be suported in Half-life 1 Dedicated Server build 3382 and client build 3382.
So, only when the server and client both use Cstrike1.6 build 3382 it can works.
When the server build is before 3382 , server report "Client CVAR querying is not enabled ..."
When the server build is 3382, server can work ,but if the client build is before 3382 client will exit and report this "Host_Error: UserMsg: Not Present on Client 58".
In MetaMod 1.19p28 sdk_util.h I find this:
#define QUERY_CLIENT_CVAR_VALUE (*g_engfuncs.pfnQueryClientCvarValue)
#define QUERY_CLIENT_CVAR_VALUE2 (*g_engfuncs.pfnQueryClientCvarValue2)
So should AMXX also give both query_client_cvar() and query_client_cvar2() to keep compatible backward?
Thanks for your work!
----------------------------------------------------------------------------
I have a plugin it uses query_client_cvar() function, it works fine in AMXX1.60, but when I upgrade to 1.70, It can not work.
This is the log:
L 03/09/2006 - 08:40:12: Client CVAR querying is not enabled - check MM version!
L 03/09/2006 - 08:40:12: [AMXX] Displaying debug trace (plugin "cvar_checker.amxx")
L 03/09/2006 - 08:40:12: [AMXX] Run time error 10: native error (native "query_client_cvar")
L 03/09/2006 - 08:40:12: [AMXX] [0] cvar_checker_203.sma::CheckNextCvar (line 277)
L 03/09/2006 - 08:40:12: [AMXX] [1] cvar_checker_203.sma::Task_DelayCvarCheck (line 226)
But, how to enable it?
I use CS1.6[Build 3329] and Metamod ver 1.19p28.
You can download this plugin here (cvar_checker):
http://forums.alliedmods.net/showthread.php?p=155936
In 1.70 changelog, I found this:
[Updated cvarquery system to cvarquery2. This requires Metamod 1.19].