Raised This Month: $ Target: $400
 0% 

How does return FMRES_SUPERCEDE; work in this plugin?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-19-2006 , 05:12  
#1

Quote:
Originally Posted by Twilight Suzuka
the semi-colon denotes a line end. It is not nessasary, but it looks nice.

FMRES_*'s denote what to tell MetaMod about the forward return type. IGNOR E means continue on past, HANDLE means stop here, SUPERCEDE means this return value and operation goes above all others, OVERRIDE means to override the value.

Look it up in the documentation before asking here; it saves time and effort.
In fact, HANDLED doesn't mean much; it's only provided for other plugins to be able to see that you did something. Metamod handles (F)MRES_IGNORED/(F)MRES_HANDLED equally IIRC. Only SUPERCEDE actually stops the original function from being called; and you can't stop other plugins from seeing the function call.
__________________
hello, i am pm
PM is offline
Closed Thread



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 16:33.


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