Raised This Month: $ Target: $400
 0% 

Automatons - question about unregistering a forward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-27-2012 , 20:01   Automatons - question about unregistering a forward
Reply With Quote #1

Do you think this could work?

PHP Code:

new g_FmSetModelForwardId

public plugin_init( )
{
    
g_FmSetModelForwardId register_forwardFM_SetModel"_FM_SetModel" )

    
set_tasksomething"SomethingNotImportant" )
}


public 
_FM_SetModelentmodel[ ] ) < UspEnabledKnifeEnabled >
{
    
// some code
        
    
return FMRES_IGNORED
}

public 
_FM_SetModelentmodel[ ] ) < >
{
    
unregister_forwardFM_SetModelg_FmSetModelForwardId )
    
    return 
FMRES_IGNORED
}

public 
SomethingNotImportant( )
{
    
state somethingevenlessimportant UspEnabled
    state 
somethinglessimportantthanabove KnifeEnabled


I'm not sure if unregistering the forward in empty automaton handler works. Has anyone tried doing this and was successful?
Backstabnoob 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 06:11.


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