Raised This Month: $ Target: $400
 0% 

Ham return types question.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 01-07-2009 , 20:29   Re: Ham return types question.
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Another question:

I switched from register_event("DeathMsg", "player_death", "a") to RegisterHam(Ham_Killed, "player", "ham_player_death", 1). In player_death() I used PLUGIN_CONTINUE for all my return values. From what I read in the constant include files I should convert all PLUGIN_CONTINUEs to HAM_HANDLED?

I was told that PLUGIN_HANDLED in the register_event case would cause the death to be unhookable by other plugins.
You should not compare the returns by ther value, but for their meanings

In your case, a direct comparison would be:
PLUGIN_CONTINUE = HAM_IGNORED
PLUGIN_HANDLED = HAM_SUPERCEDE
__________________

Community / No support through PM
danielkza 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 09:15.


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