Results 1 to 10 of 22

Thread: Hi help me?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private
    Join Date
    Aug 2013
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts
    ******* script compile error *******
    unknown function: (file 'maps/mp/gametypes/zom.gsc', line 58)
    thread maps\mp\gametypes\_weapons::RemoveMG();
    *
    ************************************
    dvar set cl_paused 0
    dvar set loc_language 0
    dvar set loc_forceEnglish 0
    dvar set cl_paused 0
    dvar set com_errorTitle Error
    dvar set com_errorMessage script compile error
    (see console for details)
    ********************
    ERROR: script compile error
    (see console for details)
    ********************
    dvar set sv_disableClientConsole 0
    ----- Server Shutdown -----
    ==== ShutdownGame ====
    dvar set sv_running 0
    my config_mp.cfg

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by furkan4933 View Post
    my config_mp.cfg
    The function RemoveMG does not exist in maps/mp/gametypes/_weapons.gsc. And that is why the mod doesn't work.

    You can do now two things:
    Comment the line 'thread maps\mp\gametypes\_weapons::RemoveMG();' in zom.gsc by adding // in front of it.
    Or you can find the function and add it or make the function.

    The function that you are probably missing is this. But it is moved to _weapons and renamed to RemoveMG.
    PHP Code:
    Remove_Map_Entity()
    {
        if(
    getCvar("scr_allow_turret") == "")
            
    setCvar("scr_allow_turret""1");
        
    level.allow_turret getCvarInt("scr_allow_turret");

        if (!
    level.allow_turret)
        {
            
    deletePlacedEntity("misc_turret");
            
    deletePlacedEntity("misc_mg42");
        }
    }

    deletePlacedEntity(entity)
    {
        
    entities getentarray(entity"classname");
        for(
    0entities.sizei++)
            
    entities[idelete();

    Last edited by Mitch; 12th August 2013 at 13:30.

  3. The Following User Says Thank You to Mitch For This Useful Post:

    furkan4933 (12th August 2013)

  4. #3
    Private
    Join Date
    Aug 2013
    Posts
    22
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Mitch View Post
    The function RemoveMG does not exist in maps/mp/gametypes/_weapons.gsc. And that is why the mod doesn't work.

    You can do now two things:
    Comment the line 'thread maps\mp\gametypes\_weapons::RemoveMG();' in zom.gsc by adding // in front of it.
    Or you can find the function and add it or make the function.

    The function that you are probably missing is this. But it is moved to _weapons and renamed to RemoveMG.
    PHP Code:
    Remove_Map_Entity()
    {
        if(
    getCvar("scr_allow_turret") == "")
            
    setCvar("scr_allow_turret""1");
        
    level.allow_turret getCvarInt("scr_allow_turret");

        if (!
    level.allow_turret)
        {
            
    deletePlacedEntity("misc_turret");
            
    deletePlacedEntity("misc_mg42");
        }
    }

    deletePlacedEntity(entity)
    {
        
    entities getentarray(entity"classname");
        for(
    0entities.sizei++)
            
    entities[idelete();

    it doesnt work

  5. #4
    Private
    Join Date
    Jul 2012
    Posts
    76
    Thanks
    9
    Thanked 56 Times in 38 Posts
    Triple posting? Are you serious?

  6. #5
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Quote Originally Posted by furkan4933 View Post
    it doesnt work
    It works perfectly.

Posting Permissions

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