I am trying to learn how to use Lite-C. I wrote the following short program:

///////////////////////////////
#define PRAGMA_PATH "%EXE_DIR%\templates\images";
#define PRAGMA_PATH "%EXE_DIR%\templates\models";
#define PRAGMA_PATH "%EXE_DIR%\templates\sounds";

#include <acknex.h>
#include <default.c>
//#include <mtlFX.c>
///////////////////////////////

BMAP* pred = "red.pcx";
FONT* arial_font = "Arial#24";
STRING* sMessage = "My Panel ";
int a;

PANEL* watcher =
{

bmap = pred;
layer = 10;
pos_x = 4;
pos_y = 4;
size_x = 400;
size_y = 60;
flags = VISIBLE;
digits(4,0,sMessage,arial_font,1,0);
}

int Finished();
{
sys_exit("bye");
}


void main()
{
level_load("Ctest.WMB");
wait(2);
printf("Here"); //OK to HERE
while(1)
{
if (key_any) {
str_cpy(sMessage, "Key Pressed");
if (engine_getscript("Finished")) Finished();
} //Finished is never called implying a null pointer
wait(1);
}
}

Please help, I do not understand why Finished is not complied. I am sure it is in the manual but I do not even know how to look for this. Thanks.


Researcher & clinician. A6, A7, & A8
First computer a Commodore Pet