Cvar Utilities
Code:
enum e_Cvar {How to do it usings enum's ? |
Re: Cvar Utilities
The cvar handles do not correspond to your enum values. Doing e_Cvar:handleCvar is pretty much guaranteed to give you OOB errors. You have to actually search for the cvar handle in gCvarInfo.
|
Re: Cvar Utilities
OK thanks for answer, i do it :
Code:
public OnChangeCvarValue( handleCvar, const oldValue[], const newValue[], const cvarName[], const defaultValue[] )Code:
CvarHookChangeAll("OnChangeCvarValue");Code:
Code:
CvarHookChangeAll("OnChangeCvarValue", true);How to do this with out ignoring first call, with out any errors ... ? edit; i missed the problem using this under all CvarRegister Code:
for(new i; i < _:e_Cvar;i++) |
Re: Cvar Utilities
If purpose is to cache value, you could use directly CvarCache without the cvar hooking hassle.
|
Re: Cvar Utilities
Love you Mr.Freeman, this is pretty cool :)
Greattings from Poland, and the topic can be closed :) |
| All times are GMT -4. The time now is 21:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.