return PLUGIN_HANDLED
I've always wondered, what exactly is the difference between
return PLUGIN_HANDLED return PLUGIN_CONTINUE and return PLUGIN_MAIN_HANDLED ...or whatever it is. |
Code:
Code:
Code:
|
My bad, it's actually return PLUGIN_HANDLED_MAIN (defined as 3)
Anyways can you give me an situation when you would want to use PLUGIN_CONTINUE and PLUGIN_HANDLED? Not an actual plugin just like a small example of when to use it, because I think that's my biggest problems with my plugins (unless it really doesn't matter) |
PLUGIN_CONTINUE stops the current function but plugin keeps going. My explanation isnt exactly good but i tried making it as n00by as possible
|
-.- I know what it does I just want a situation when you would want to use it.
|
in a "say"
continue, other players will see it normally handled, no one sees the message handled_main... I have yet to see a plugin that uses this, I dont have a clue |
Ahhh I C, could you block a event like this?
|
Some of them yes, others cant be blocked like this.. but like 90% can
|
You cant block an event with this, to block an event us must use the function
set_msg_block(iMessage, iMessageFlags); this function is in egnine module. |
Quote:
|
| All times are GMT -4. The time now is 17:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.