Raised This Month: $51 Target: $400
 12% 

Solved callfunc_* alternative


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-13-2019 , 07:53   callfunc_* alternative
Reply With Quote #1

I'm using callfunc_* natives in my plugin so I can register items in a menu from external plugins, but with callfunc_* you don't have the ability of returning PLUGIN_HANDLED in the external plugin and then blocking the function in the main plugin.

I was thinking of using this but it differs from my usage

The usage shown in the link:
PHP Code:
public plugin_init( )

    
some_native("MyFunction"); 


public 
MyFunction(param

    return 
1;

My usage:
PHP Code:
public plugin_init( )

    
some_native"Item Name"Itemcost"CallBackHandler" );


public 
CallBackHandlerid 

    
client_printidprint_chat"Hello there!" );

Can CreateOneForward be used in the form that I'm using callfunc?
__________________

Last edited by edon1337; 08-13-2019 at 16:58.
edon1337 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 22:44.


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