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
__________________