whoa
This commit is contained in:
parent
50311d14fb
commit
07e55f3b71
|
@ -22,7 +22,16 @@ 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user