Posted By: Uhrwerk
Is "execute" still supported? - 02/18/13 00:57
Hello Mr. Lotter,
I was wondering if execute is still supported by the engine. I tried:
#include <acknex.h>
void main()
{
execute("beep()");
execute("sys_exit(0)");
execute("level_load(\"test.wmb\")");
}
but none of these executes works, neither without nor with a semicolon. Has the support for this function seized?
Posted By: jcl
Re: Is "execute" still supported? - 02/18/13 09:20
Execute is unchanged AFAIK, but of course of little use as it's for C-Script only.
Posted By: Uhrwerk
Re: Is "execute" still supported? - 02/18/13 14:45
The manual says
Under lite-C the function uses the C-Script interpreter. It can only be used for calling engine functions with engine variables, and has no access to functions or variables of the script.
so I was under the impression that it did work under Lite-C. So execute cannot be used at all in Lite-C? Or is there an error in my code?
Posted By: jcl
Re: Is "execute" still supported? - 02/20/13 10:00
I've checked to be sure, but no, it can not be used in lite-C. The manual was wrong here. It could be used in the early lite-C version that supported a mix of lite-C and C-Script, but I believe since A7 the C-Script interpreter can not be called anymore in a lite-C project. This was apparently never corrected in the manual.