Raised This Month: $32 Target: $400
 8% 

[adminmenu_custom.txt] Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
poel
Veteran Member
Join Date: Mar 2013
Old 01-24-2016 , 09:57   [adminmenu_custom.txt] Help
Reply With Quote #1

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 !
poel is offline
Squallkins
AlliedModders Donor
Join Date: Mar 2005
Old 01-24-2016 , 15:04   Re: [adminmenu_custom.txt] Help
Reply With Quote #2

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)

Last edited by Squallkins; 01-24-2016 at 15:05.
Squallkins is offline
poel
Veteran Member
Join Date: Mar 2013
Old 01-24-2016 , 16:29   Re: [adminmenu_custom.txt] Help
Reply With Quote #3

Weird, it works now.

TY
poel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:47.


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