PDA

View Full Version : Problem with compile, is it gsc?



7days7
12th July 2016, 16:43
Hi!

I'm a newbie in cod2 scripting so it's a little problem but I want to grow in this knowledge so if there's someone who can help me - I'll be grateful ;D Currently I'm making map with doors but when I turn server on, I've some error in console like this:


------- Game Initialization -------
gamename: Call of Duty 2
gamedate: May 1 2006

******* script compile error *******
unknown function: @ 44406
************************************
********************
ERROR: script compile error
(see console for details)
********************
----- Server Shutdown -----
==== ShutdownGame ====


******* script compile error *******
unknown function: (file 'maps/mp/mp_laboratory.gsc', line 16)
triger01 waitill ("trigger");



And here's my gsc file:


main()
{
maps\mp\_load::main();

level thread door01();
}

door01()
{
triger01 = getent ("trigger_door01", "targetname");
l_door01 = getent ("leftdoor01", "targetname");
r_door01 = getent ("rightdoor01", "targetname");

while(1)
{
triger01 waitill ("trigger");
l_door01 moveX (-256, 5, 1.2, 1.2);
r_door01 moveX (-448, 5, 1.2, 1.2);

l_door01 waitill ("movedone");
r_door01 waitill ("movedone");

wait(3);

l_door01 moveX (-320, 5, 1.2, 1.2);
r_door01 moveX (-384, 5, 1.2, 1.2);

l_door01 waitill ("movedone");
r_door01 waitill ("movedone");
}
}


EDIT: Omg, I was moved this topic to mapping section... My mistake, sorry ;P

Ni3ls
12th July 2016, 16:46
Test with developer 1. It will show you the error

7days7
12th July 2016, 16:52
Yea, there's one line error:


******* script compile error *******
unknown function: (file 'maps/mp/mp_laboratory.gsc', line 16)
triger01 waitill ("trigger");

What's wrong?

maxdamage99
12th July 2016, 16:58
try rename triger01 :D

7days7
12th July 2016, 17:03
Still nothing ;P

Ni3ls
12th July 2016, 17:11
waitTill

Watch the double "t"

7days7
12th July 2016, 17:16
What a shame! :o I've to go outside and take a deep breath for my brain ;D Thanks a lot!