[HAMSANDWICH] Invalid HamHook handle.
I am getting this error from server logs:
Code:
L 03/12/2014 - 12:35:42: [HAMSANDWICH] Invalid HamHook handle. PHP Code:
PHP Code:
PHP Code:
|
Re: [HAMSANDWICH] Invalid HamHook handle.
I don't see Forward_Killed/Forward_TakeDamage set.
|
Re: [HAMSANDWICH] Invalid HamHook handle.
PHP Code:
PHP Code:
|
Re: [HAMSANDWICH] Invalid HamHook handle.
Forward_Killed/Forward_TakeDamage are not set. You create the variables, but default value is 0, empty so. You are supposed to filled these variables with RegisterHam return value, otherwise how you can expect the module to know?
|
Re: [HAMSANDWICH] Invalid HamHook handle.
Quote:
I dont get a shit, sorry. Can you move this to request section and help me with it? Thanks |
Re: [HAMSANDWICH] Invalid HamHook handle.
Forward_Killed = RegisterHam( Ham_Killed, "player", "Fwd_PlayerKilled", 1 );
Forward_Killed will contain an handle which can be used with EnableHamForward(). What you were doing was creating empty variable, so basically doing EnableHamForward(0) ; do you think module will be able to know what forward you're talking about? |
Re: [HAMSANDWICH] Invalid HamHook handle.
Quote:
and have PHP Code:
|
Re: [HAMSANDWICH] Invalid HamHook handle.
If there is a public function Fwd_PlayerKilled in code and if you want to use it as a callback of function CBasePlayer::Killed, you need to set it using RegisterHam(Ham_Killed, "player", "Fwd_PlayerKilled", 0 or 1)
Once this is done, consider EnableHamForward and DisableHamForward as additional features. |
All times are GMT -4. The time now is 10:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.