I tried that:

Code:
 
#include <acknex.h>
#include <default.c>

function Test_Fun()
{
wait(-10);
sys_exit("");
}

STRING* NameOfFunction = "Test_Fun";

void* voidptr()
{

wait(1);

}

long type;

function main()
{

wait(1);

voidptr = engine_getvar(NameOfFunction,type);

voidptr();

}



It did not work...."Error E1513: Crash in main"

How can I do that correctly?