Results 1 to 3 of 3

Thread: cant open menus after info menu

  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts

    cant open menus after info menu

    hi , i wanted to make a mod with 3 choices. i have 3 different weapon types : normal , all weapons , rifle. i edit weapons init like this in ctf,tdm whatever and also other things(weaponrestricted etc).

    PHP Code:
        if( !isdefined("game_mode") || getcvar("game_mode") == ""setcvar("game_mode""norm");
        
    mode getcvar("game_mode");
        if(
    mode == "norm"){
            
    thread maps\mp\gametypes\_weapons::init();
            
        }
        else if (
    mode == "rifle"){
            
    thread maps\mp\gametypes\_weaponsrifle::init();
            
        }
        else if (
    mode == "allweap"){
            
    thread maps\mp\gametypes\_weaponsallweap::init();
            
        } 
    and edited _menus like this

    PHP Code:
        
        mode 
    getcvar("game_mode");
        if(
    mode == "norm"){
        
    game["menu_weapon_allies"] = "weapon_" game["allies"];
        
    game["menu_weapon_axis"] = "weapon_" game["axis"];
        }
        else if(
    mode == "rifle"){
        
    game["menu_weapon_allies"] = "weaponrifle_" game["allies"];
        
    game["menu_weapon_axis"] = "weaponrifle_" game["axis"];
        }
        else if(
    mode == "allweap"){
        
    game["menu_weapon_allies"] = "weaponallweap_" game["allies"];
        
    game["menu_weapon_axis"] = "weaponallweap_" game["axis"];
        } 
    i have 3 weapons menu for each modes , but only normal weapons menu work. when i put other modes dont open any menu after info menu. what must i edit also ?

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Check the client's console. probably faulty .menu file.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

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

    feanor (18th October 2016)

  4. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Precache the menus

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

    feanor (18th October 2016)

Posting Permissions

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