I am completely new to scripting and code, so I've been trying to follow the Lite-C Workshops for Gamesudio. However, I have a problem with the tutorials. In the first workshop, I load Script01 into SED, but when I get to the part to take a test run, I get this error:

Error in 'MAIN' line 1: 'function' undeclared identifier

< function main( ) >
.
Can't compile SCRIPT01.C
Startup failure - any key to abort


I have the same exact code in my script that the workshop shows. I've even copied and pasted it as follows:

function main( )
{
level_load("small.hmp");
ent_create("earth.mdl", vector(10, 20, 30), NULL);
}


Also, I made sure to check the option for "Use current file for Test Run" under preferences.
If anyone can help me or provide a solution, I would greatly appreciate it.