From 47d1881c295a994db14eef1b5e34248f7fab7b11 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 29 Oct 2004 19:54:56 +0000 Subject: [PATCH] Added declarations for: callfunc_begin_i get_func_id --- plugins/include/amxmodx.inc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index bff65db6..d3eb0ac6 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -623,11 +623,26 @@ native unpause(flag[], const param1[]="",const param2[]=""); * func - function name * Return value: * 1 - Success -* 0 - Runtime error * -1 - Plugin not found * -2 - Function not found */ native callfunc_begin(const func[], const plugin[]=""); +/* Call a function in this / an another plugin by id. +* Parameters: +* plugin - plugin id; the id you would pass to get_plugin +* If < 0, the current plugin is taken +* func - function id +* Return value: +* 1 - Success +* -1 - Plugin not found +* -2 - Function not executable */ +native callfunc_begin_i(func, plugin = -1); + +/* Get a function id (for callfunc_begin_i) + To get the plugin id, use the find_plugin stock +*/ +native get_func_id(const funcName[], pluginId = -1); + /* Push a parameter (integer, string, float) */ native callfunc_push_int(value); native callfunc_push_str(const VALUE[]);