Thread: [Solved] KeyValues Errors
View Single Post
Author Message
Anton1823
New Member
Join Date: Sep 2020
Old 09-19-2020 , 05:33   KeyValues Errors
Reply With Quote #1

Hello, I'm trying to make a custom submenu for sm_admin with setting health on players and infinite ammo though only health works
I've also noticed that i got lots of keyvalues errors in the console
Code:
KeyValues Error: RecursiveLoadFromBuffer:  got EOF instead of keyname in file addons/sourcemod/configs/adminmenu_custom.txt
Commands, Custom Commands, Give Health to player..., 2,
KeyValues Error: RecursiveLoadFromBuffer:  got EOF instead of keyname in file addons/sourcemod/configs/adminmenu_custom.txt
Commands, Custom Commands, Give Health to player..., (*2*),
KeyValues Error: RecursiveLoadFromBuffer:  got EOF instead of keyname in file addons/sourcemod/configs/adminmenu_custom.txt
Commands, Custom Commands, (*Give Health to player...*), (*2*),
KeyValues Error: RecursiveLoadFromBuffer:  got EOF instead of keyname in file addons/sourcemod/configs/adminmenu_custom.txt
Commands, (*Custom Commands*), (*Give Health to player...*), (*2*),
Here is the adminmenu_custom.txt file
Code:
"Commands"
{
"Custom Commands"
{
"Give Health to player..."
{
"cmd"            "sm_sethealth #1 @2"
"admin"          "sm_cvar"
"execute"        "player"
"1"
{
"type" 		"groupplayer"
"method"	"name"
"title"		"Player/Team to Edit"
}
"2"
{
"type"       "list"
"title"      "Amount of health"
"1"          "10000"
"1."         "10000"
"2"          "5000"
"2."         "5000"
"3"          "1000"
"3."         "1000"
}
}
"Infinite Ammo for Player"
{
"cmd"            "sm_fia #1 @2"
"admin"          "sm_cvar"
"execute"        "player"
"1"
{
"type" 		"groupplayer"
"method"	"name"
"title"		"Player/Team to Edit"
}
"2"
{
"type"       "list"
"title"      "On or off?"
"1"          "1"
"1."         "On"
"2"          "0"
"2."         "Off"
}
}
}
}
Can someone help?
(I am new to all this sourcemod stuff so i'm sorry if this is a dumb post)

Last edited by Anton1823; 09-19-2020 at 06:36.
Anton1823 is offline