Hi, I have this plugin installed on my server and it was working fine and then one day I noticed these errors when I started my server.
Code:
KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons/sourcemod/configs/advertisements.txt
Advertisements, *NEW*,
KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons/sourcemod/configs/advertisements.txt
!swapteam, LIGHTGREEN, (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*!swapteam*), (*LIGHTGREEN*), (**NEW**),
and I have checked my advertisements.txt file and this is what it looks like
PHP Code:
// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
// - Colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
// {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
// - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.
"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}Welcome to the server! {LIGHTGREEN}Enjoy your stay!"
}
"2"
{
"type" "H"
"text" "http://www.soldiersofmayhem.com"
}
"3"
{
"type" "H"
"text" "HLStatsX"
}
"4"
{
"type" "S"
"text" "HLStatsX is enabled! Type {GREEN}'hlx' {DEFAULT} for more info"
}
"5"
{
"type" "S"
"text" "Type {GREEN}'rank' {DEFAULT}to see you rank on the server!"
}
"6"
{
"type" "S"
"text" "Type {GREEN}'somclan' {DEFAULT}to visit our website!"
}
"7"
{
"type" "S"
"text" "Type {GREEN}'stats' {DEFAULT}to view our HLStatsX"
}
"8"
{
"type" "S"
"text" "Other Commands: {GREEN}hlx, help, top(5,10,20), kpd, session, place, statsme, votekick , voteban , votemap , rtv , !radio , !radiooff ,{LIGHTGREEN} and !swapteam (Donators ONLY)"
}
"9"
{
"type" "S"
"text" "{GREEN}Liked playing on here? {LIGHTGREEN}Then please add us to your favorites! Don't forget to tell your friends!"
}
"10"
{
"type" "S"
"text" "{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
}
"11"
{
"type" "S"
"text" "{GREEN}Admins: {DEFAULT}Finest"
}
"12"
{
"type" "S"
"text" "{GREEN}People AFK? Mic Spammers? Jerks? {LIGHTGREEN}Use votekick or voteban!"
}
"13"
{
"type" "S"
"text" "{GREEN}Don't like the map? {LIGHTGREEN}Use: rtv to start Rock the vote, or use votemap!"
}
"14"
{
"type" "S"
"text" "{GREEN}*NEW*{LIGHTGREEN}Donators will get a reserve slot on this server!"
}
"15"
{
"type" "S"
"text" "{GREEN}*NEW*{LIGHTGREEN}Donators will get Immunity from votekick and will get Bonus Round Immunity!"
}
"16"
{
"type" "S"
"text" "{GREEN}*NEW*{LIGHTGREEN}Donators ALSO get Immunity from Auto Team Balance and will get kick Immunity from AFK Manager!"
}
"17"
{
"type" "S"
"text" "{GREEN}*NEW*{LIGHTGREEN}Donators will be able to use {GREEN} '!swapteam' {LIGHTGREEN}to change their team REGARDLESS of team size!"
}
"18"
{
"type" "S"
"text" "{GREEN}*NEW* {LIGHTGREEN}Donators will get Immunity from the High Ping Kicker!"
}
}
and I have these 3 cvars in my server.cfg file
Code:
sm_advertisements_enabled 1
sm_advertisements_file advertisements.txt
sm_advertisements_interval 30
I have no idea what is going on, everything looks fine :O
EDIT: NEvermind I fixed it. It was the weirdest problem ever! I guess the double quotes that you put around the type and text ("") I have no idead how but like a different type was there, I have no idea how but I went through and changed the weird pair of double quote to the standard ones I guess you can call them and it fixed it.
__________________