0 registered members (),
17,416
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Lite-C Workshop help.
#318629
04/08/10 19:43
04/08/10 19:43
|
Joined: Apr 2010
Posts: 4 USA
Mrsickness07
OP
Guest
|
OP
Guest
Joined: Apr 2010
Posts: 4
USA
|
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|