Raised This Month: $ Target: $400
 0% 

[HELP]Switch functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 09-07-2013 , 05:31   Re: [HELP]Switch functions
Reply With Quote #10

Just to clarify
Code:
/**
 * Ham return types.
 * -
 * Return these from hooks to disable calling the target function.
 * Numbers match up with fakemeta's FMRES_* for clarity.  They are interchangable.
 * 0 (or no return) is also interpretted as HAM_IGNORED.
 */
#define HAM_IGNORED		1	/* Calls target function, returns normal value */
#define HAM_HANDLED		2	/* Tells the module you did something, still calls target function and returns normal value */
#define HAM_OVERRIDE	3	/* Still calls the target function, but returns whatever is set with SetHamReturn*() */
#define HAM_SUPERCEDE	4	/* Block the target call, and use your return value (if applicable) (Set with SetHamReturn*()) */
Quote:
Originally Posted by SpaWn2KiLl View Post
...
You forgot to register spawn
__________________

Last edited by Black Rose; 09-07-2013 at 05:37.
Black Rose 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 18:51.


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