Hi, I'm struggling to get "engine_getvarinfo" to work. What I want is the name of the variable, but the script gives me the name of the stuct and an empty char.
Code:
#include <acknex.h>
#include <default.c>
typedef struct
{
var testvar;
}TESTSTRUCT;
TESTSTRUCT tStruct[4];
void test()
{
char varname[33];
char structname[33];
long offset;
long type = engine_getvarinfo(&tStruct[0].testvar,varname,structname,&offset);
printf(varname);
printf(structname);
}
void main()
{
test();
}