mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
whoa
This commit is contained in:
parent
50311d14fb
commit
07e55f3b71
@ -21,8 +21,17 @@ public test_createforward_handler(pluginid, numparams)
|
|||||||
|
|
||||||
new function[32]
|
new function[32]
|
||||||
get_string(1, function, 31)
|
get_string(1, function, 31)
|
||||||
|
|
||||||
|
if (g_forward > 0)
|
||||||
|
{
|
||||||
|
DestroyForward(g_forward)
|
||||||
|
}
|
||||||
|
|
||||||
g_forward = CreateOneForward(pluginid, function)
|
g_forward = CreateOneForward(pluginid, function)
|
||||||
|
if (g_forward < 0)
|
||||||
|
{
|
||||||
|
server_print("Failed to create forward!")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//test_executeforward()
|
//test_executeforward()
|
||||||
@ -36,4 +45,10 @@ public test_executeforward_handler(pluginid, numparams)
|
|||||||
{
|
{
|
||||||
server_print("failed to execute forward (I'm %d)", g_id)
|
server_print("failed to execute forward (I'm %d)", g_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_forward > 0)
|
||||||
|
{
|
||||||
|
DestroyForward(g_forward)
|
||||||
|
g_forward = -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user