Results 1 to 7 of 7

Thread: Problem with compile, is it gsc?

  1. #1
    ... connecting
    Join Date
    Oct 2013
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Problem with compile, is it gsc?

    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:

    Code:
    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
    Last edited by 7days7; 12th July 2016 at 16:51.

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Test with developer 1. It will show you the error

  3. #3
    ... connecting
    Join Date
    Oct 2013
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    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?

  4. #4
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    try rename triger01

  5. The Following User Says Thank You to maxdamage99 For This Useful Post:

    Paho (23rd July 2016)

  6. #5
    ... connecting
    Join Date
    Oct 2013
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Still nothing ;P

  7. #6
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    waitTill

    Watch the double "t"

  8. #7
    ... connecting
    Join Date
    Oct 2013
    Posts
    8
    Thanks
    3
    Thanked 0 Times in 0 Posts
    What a shame! I've to go outside and take a deep breath for my brain ;D Thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •