Raised This Month: $51 Target: $400
 12% 

OnQueryCvarValueFinished never gets called


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backup
Senior Member
Join Date: Jul 2010
Location: Česká Republika
Old 02-06-2018 , 18:02   OnQueryCvarValueFinished never gets called
Reply With Quote #1

Hi,
I'm writing an extension and I'm trying to get client's cvar.
When I called engine->GetClientConVarValue(...), I got empty string. I've expected this since the cvar is quite unusual.
Now I'm calling engine->StartQueryCvarValue(...), I get valid cookie, but OnQueryCvarValueFinished never gets called!
I have it hooked the same way as sourcemod does it:
Code:
SH_DECL_HOOK5_void(IServerGameDLL, OnQueryCvarValueFinished, SH_NOATTRIB, 0, QueryCvarCookie_t, edict_t *, EQueryCvarValueStatus, const char *, const char *);

bool CExtension::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late) {
	SH_ADD_HOOK(IServerGameDLL, OnQueryCvarValueFinished, gamedll, SH_MEMBER(this, &CExtension::OnQueryCvarValueFinished), false);
}
I've tried different cvars without any luck. I'm testing this in csgo.

Have you encountered such issue?

Thanks!
__________________
Sorry for my english.
Backup 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 08:12.


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