I have made two small plugins to show this
Code:
#include <amxmodx>
new g_forward
public plugin_init()
{
register_plugin("test", "1.0", "gaben")
}
public plugin_natives()
{
register_native("test_createforward", "test_createforward_handler")
register_native("test_executeforward", "test_executeforward_handler")
}
//test_createforward(function[])
public test_createforward_handler(pluginid, numparams)
{
new function[32]
get_string(1, function, 31)
g_forward = CreateOneForward(pluginid, function)
}
//test_executeforward()
public test_executeforward_handler(pluginid, numparams)
{
new retval
if (!ExecuteForward(g_forward, retval))
server_print("failed to execute forward")
}
Code:
#include <amxmodx>
native test_createforward(function[])
native test_executeforward()
public plugin_init()
{
register_plugin("test 2", "1.0", "gaben")
test_createforward("gaben")
test_executeforward()
}
public gaben()
{
server_print("gaben executed")
}
I tested theese on a clean 1.71 and they always print
Code:
failed to execute forward