Results 1 to 7 of 7

Thread: Problem with compile, is it gsc?

Threaded View

Previous Post Previous Post   Next Post Next Post
  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.

Posting Permissions

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