Hi there! Maybe I'm wrong with choosing the forum thread, if so, I'm sorry.
First of all, I'm writing HL2: DM server from Valve Source SDK 2013 so I can't edit client code, I'm working only with server code.
Now I'm trying to get cvar's value from the server side (not a plugin, I don't want to build a plugin just to getting cvar values). ATM I use engine->StartQueryCvarValue like that ('cl_playermodel' just for example):
Code:
int nQueryResult = (int)engine->StartQueryCvarValue(pPlayer->edict(), "cl_playermodel");
I'm trying to catch the result on CServerGameDLL::OnQueryCvarValueFinished that declared as:
Code:
virtual void OnQueryCvarValueFinished(QueryCvarCookie_t iCookie, edict_t *pPlayerEntity, EQueryCvarValueStatus eStatus, const char *pCvarName, const char *pCvarValue);
But! I get negative values in the nQueryResult (as far as I know, that means the engine consider it as a query from a server and should respond something to IServerGameDLL::OnQueryCvarValueFinished) and... nothing happens. No errors, no values got.
Can somebody explain me how I can get convar values from the server code? Thanks a lot for any help!