This commit is contained in:
David Anderson 2006-06-11 09:01:30 +00:00
parent 50311d14fb
commit 07e55f3b71

View File

@ -21,8 +21,17 @@ public test_createforward_handler(pluginid, numparams)
new function[32]
get_string(1, function, 31)
if (g_forward > 0)
{
DestroyForward(g_forward)
}
g_forward = CreateOneForward(pluginid, function)
if (g_forward < 0)
{
server_print("Failed to create forward!")
}
}
//test_executeforward()
@ -36,4 +45,10 @@ public test_executeforward_handler(pluginid, numparams)
{
server_print("failed to execute forward (I'm %d)", g_id)
}
if (g_forward > 0)
{
DestroyForward(g_forward)
g_forward = -1
}
}