Raised This Month: $12 Target: $400
 3% 

adminmenu_custom Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 04-08-2015 , 01:36   adminmenu_custom Problem
Reply With Quote #1

I'm having some problems getting 2 new admin menu entries to display properly.

The first menu displays the numbers 1 and 2 and option 6 of part 3 instead of the player names, time period and reasons respectively.

The second menu isnt displaying at all.

Here's my adminmenu_custom.txt:

Code:
"Commands"
{
	"Temporary Bans"
	{
		"cmd"		"sm_ban #1 #2 #3"
		"admin"		"sm_kick"
		"execute"		"server"
			"1"
			{
				"type" 		"player"
				"method"		"name"
				"title"		"Ban Player"
			}
			"2"
			{
				"type" 		"list"
				"title"		"Ban Player For"
				"1"		"60"
				"1."		"1 Hour"
				"2"		"360"
				"2."		"6 Hours"
				"3"		"720"
				"3."		"12 Hours"
				"4"		"1440"
				"4."		"1 Day"
				"5"		"4320"
				"5."		"3 Days"
			}
			"3"
				"type" 		"list"
				"title"		"Ban Reason"
				"1"		"Cheater"
				"2"		"Map Exploiter"
				"3"		"Troll"
				"4"		"Racist"
				"4"		"Bully or Harraser"
				"6"		"Mic or Music Spammer"
				"7"		"VoteKick or VoteBan Abuse"
			}
	}
	"Change Gamemode"
	{
		"cmd"		"mc_gamemode #1"
		"admin"		"sm_kick"
		"execute"		"server"
			"1"
			{
				"type" 		"list"
				"title"		"Gamemode:"
				"1"		"3"
				"1."		"PvPvM"
				"2"		"2"
				"2."		"PvM Coop"
				"3"		"5"
				"3."		"Hoarder"
				"4"		"4"
				"4."		"Team DM"
				"5"		"1"
				"5."		"DM"
			}
	}
}
Any idea what im doing wrong?
PAL-18 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-08-2015 , 03:38   Re: adminmenu_custom Problem
Reply With Quote #2

You're missing an opening brace and have duplicated 4 in the ban reason list.
__________________
asherkin is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 04-08-2015 , 16:18   Re: adminmenu_custom Problem
Reply With Quote #3

DOH >.<

I needed a new set of eyes to spot the problems...

Only problem is. Those errors are still occurring (even with your fixes).

Last edited by PAL-18; 04-10-2015 at 06:07.
PAL-18 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 04-11-2015 , 11:07   Re: adminmenu_custom Problem
Reply With Quote #4

So ... any idea why its still doing it?
PAL-18 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 04-11-2015 , 14:00   Re: adminmenu_custom Problem
Reply With Quote #5

PHP Code:
"3"
{
    
"type"         "list"
    "title"        "Ban Reason"
    "1"        "Cheater"
    "2"        "Map Exploiter"
    "3"        "Troll"
    "4"        "Racist"
    "4"        "Bully or Harraser"
    "6"        "Mic or Music Spammer"
    "7"        "VoteKick or VoteBan Abuse"

Notice the difference between what I posted and what you have?
__________________

Last edited by WildCard65; 04-11-2015 at 14:02.
WildCard65 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 04-11-2015 , 17:26   Re: adminmenu_custom Problem
Reply With Quote #6

I did change to that, but it still displays the same problem.

Here's my new file:

Quote:
"Temporary Bans"
{
"cmd" "sm_ban #1 @2 #3"
"admin" "sm_kick"
"execute" "server"
"1"
{
"type" "player"
"method" "name"
"title" "Ban Player"
}
"2"
{
"type" "list"
"title" "Ban Player For"
"1" "60"
"1." "1 Hour"
"2" "360"
"2." "6 Hours"
"3" "720"
"3." "12 Hours"
"4" "1440"
"4." "1 Day"
"5" "4320"
"5." "3 Days"
}
"3"
{
"type" "list"
"title" "Ban Reason"
"1" "Cheater"
"2" "Map Exploiter"
"3" "Troll"
"4" "Racist"
"5" "Bully or Harraser"
"6" "Mic or Music Spammer"
"7" "VoteKick or VoteBan Abuse"
}
}
PAL-18 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 22:28.


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