AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [adminmenu_custom.txt] Help (https://forums.alliedmods.net/showthread.php?t=278086)

poel 01-24-2016 09:57

[adminmenu_custom.txt] Help
 
Hi,

something wrong with my menu (for this part) :

Code:

        "Minimum player by maps"
        {
                        "cmd"                "sm_set_min_players #1"
                        "admin"                "sm_ban"
                        "execute"        "player"
                        "1"
                        {
                                "type"                "list"
                                "title"                "Min players :"
                                "1"                "20"
                                "2"                "30"
                                "3"                "35"
                                "4"                "40"
                                "5"                "45"
                                "6"                "50"
                        }
        }

But, in game, I cant see it in the "Admin menu" but I got this error on SM logs :

[adminmenu.smx] Duplicate command name "1" in adminmenu_custom.txt category "Minimum player by maps"

that's weird, because I use this kind of menu for a lot of cmd but only this one bug.

Something is missing ?

ty for help !

Squallkins 01-24-2016 15:04

Re: [adminmenu_custom.txt] Help
 
Using the excerpt you provided, the menu option appears fine and excutes the command as well.

Maybe you have a missing or extra { } somewhere else in the config file (most likely immediately before or after the part you linked)

poel 01-24-2016 16:29

Re: [adminmenu_custom.txt] Help
 
Weird, it works now.

TY


All times are GMT -4. The time now is 10:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.