ExecuteHam/b Information?
I only need a bit more information from the ones who know the difference between ExecuteHam and ExecuteHamB.
I have this part of code: PHP Code:
PHP Code:
PHP Code:
Code:
L 02/14/2013 - 02:13:19: Start of error session.I had a similar problem here and it got fixed by using it without the B: http://forums.alliedmods.net/showthread.php?t=206474 Someone can explain what the situation is? I am just curious. |
Re: ExecuteHam/b Information?
B means function will be called for any plugins hooking this one.
|
Re: ExecuteHam/b Information?
So you mean if there is another plugin hooking Ham_Killed (in this situation), the other plugin will hook it and if it didnt have the B, the other plugin will not be able to hook it?
That might be a problem to me, since i have another plugin that needs to hook the player's death. Anyway i can fix this? |
Re: ExecuteHam/b Information?
Read the documenation:
PHP Code:
|
Re: ExecuteHam/b Information?
If you just need to change the attacker to 0, you should use SetHamParamInteger.
Also, you are receiving a stack error because you are calling Ham_Killed with ExecuteHamB (which sends to all plugins, including the one calling it) within the Ham_Killed hook, creating a giant loop. |
Re: ExecuteHam/b Information?
Oh right i see now. How stupid of me, of course it will be an inifinite loop.
Thank you very much emp, that was exactly what i intended to do. Thank you very much all of you. |
| All times are GMT -4. The time now is 20:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.