Raised This Month: $ Target: $400
 0% 

hook_cvar_change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ish12321
Veteran Member
Join Date: May 2016
Old 05-26-2018 , 05:11   Re: hook_cvar_change
Reply With Quote #4

Code:
hook_cvar_change(cvar_pcvar, "function"); public function(pcvar, old, newval) {     client_print(0, print_chat, "%d %d", old, newval); }

Sorry for not providing earlier. The value printed in chat is not the cvar value (old and new both are diff). Am I doing something wrong?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 05-26-2018 at 09:01.
ish12321 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 04:37.


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