Raised This Month: $ Target: $400
 0% 

plugin-to-plugin communication


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-30-2004 , 12:04   hmm
Reply With Quote #5

Quote:
Originally Posted by PM
you can also call a public function in an another plugin using the callfunc_* natives. Check the amxmodx.inc file for details
Quote:
/* Call a function in this / an another plugin by name.
* Parameters:
* plugin - plugin name; if "", the caller plugin is used.
* If specified, it has to be the exact name (for example stats.amx)
* func - function name
* Return value:
* 1 - Success
* 0 - Runtime error
* -1 - Plugin not found
* -2 - Function not found */
native callfunc_begin(const plugin[]="", const func[]);


/* Push a parameter (integer, string, float) */
native callfunc_push_int(value);
native callfunc_push_str(value[]);
native callfunc_push_float(Float: value);
native callfunc_push_intrf(&value);
native callfunc_push_floatrf(& Float: value);

/* Make the actual call.
* Return value of the function called. */
native callfunc_end();
Do all three of those need to be used when calling a pubic?

when
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
 



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 21:35.


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