you should build in more debug messages...
and tell us which line the error exists...(the error message is truncated..)
Maybe here is a problem:
Code:
new ent = engfunc( EngFunc_CreateEntity, engfunc( EngFunc_AllocString, "func_wall" ) );
i would do that with
Code:
ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
__________________