Error2..

Posted By: jaa

Error2.. - 12/06/07 18:19

This is what i'm doing..open a new level in wed..add a large hollow cube..and add a small cube in that hollow cube..add one light above the small cube and add a position(camera) somewhere in hollow cube..save it as "test" at new folder at desktop.then go to map properties and add a new script.this is what i write in the script :-

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

////////////////////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
level_load ("test.wmb");
}

then i build a map..when i run it came error..this script i copied from workshop08 and just change wmb files name..so, can someone please tell me why this happen or i make a teribble mistake in that step.cannot find the problem even i've read all the workshop and some AUM siries..
Posted By: Shadow969

Re: Error2.. - 12/06/07 19:48

can you give the exact error message?
Posted By: Ottawa

Re: Error2.. - 12/07/07 00:02

Hi Jaa!

Is the name of the file test.c or test.wdl?

Ottawa
Posted By: jaa

Re: Error2.. - 12/07/07 07:20

the error on window say:-

compiling test.wdl - esc to abort...
<video_mode = 7>
test.wdl 9.0(): read only video_mode

Script error
Engine shutdown
Startup failure-anykey to abort

...
the name of the file is test.wdl..

please help me..
i'm very appreciate to all..
Posted By: Lukas

Re: Error2.. - 12/07/07 08:55

Rename it to "test.c" and it should work
Posted By: jaa

Re: Error2.. - 12/08/07 11:08

thank for all..it realy work when i named it test.c..
thank again..
© 2023 lite-C Forums