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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
wakedb
Member
Join Date: Dec 2019
Location: unknwn
Old 08-16-2020 , 11:00   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2141

Hi pal, I keep getting this in gcp console.

Quote:
KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons/sourcemod/configs/advertisements.txt
24,
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*31*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
(*37*),
and 24, 31, 37 looks like this:

Quote:
}
"24"
{
"chat" "{blue}Forum [Deathmatch]: {default}www.myforum.ro/dm"
}
"31"
{
"chat" "{green}Jump to forum! {default}Click Server Website in scoreboard!"
}
"37"
{
"chat" "{blue}Forum [Deathmatch]: {default}www.myforum.ro/dm"
}
__________________

Last edited by wakedb; 08-16-2020 at 11:01.
wakedb is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-16-2020 , 14:05   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2142

The issue is probably in an earlier part of the config, which causes later parts to break. For example a missing curly brace or quote, or an unescaped quote inside a key or value.

I would need to see the entire config to help further.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 08-16-2020 at 14:05.
DJ Tsunami is offline
wakedb
Member
Join Date: Dec 2019
Location: unknwn
Old 08-18-2020 , 08:02   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2143

Here my pal, the entire config.

Code:
"Advertisements"
{
     }
     "1"
     {
              "chat"   "{lime}[RO] {default}Bine ai venit!"
     }
     "2"
     {
              "chat"   "{lime}[EN] {default}Welcome!"
     }
     "3"
     {
              "chat"   "{lime}[ESP] {default}Bienvenido!"
     }
     "4"
     {
              "chat"   "{lime}[GER] {default}Herzlich willkommen!"
     }
     "5"
     {
              "chat"   "{lime}[GAL] {default}Benvido!"
     }
     "6"
     {
              "chat"   "{lime}[RUS] {default}добро пожаловать!"
     }
     "7"
     {
              "chat"   "{lime}[IT] {default}Benvenuto!"
     }
     "8"
     {
              "chat"   "{lime}[TUR] {default}Hoş bulduk!"
     }
     "9"
     {
              "chat"   "{lime}[FRA] {default}Bienvenue!"
     }
     "10"
     {
	      "chat"    "{green}Jump to forum! {default}click Server Website in scoreboard!"
     }
     "11"
     {
	      "chat"    "{green}Type !shop {default}to open the store {green}menu."
     }
     "12"
     {
	      "chat"    "Adaugati serverul la favorites {blue}DM.LaLeagane.Ro"
     }
     "13"
     {
	      "chat"    "{default}Va asteptam si pe serverul de {green}[Hide'N'Seek] {red}HnS.LaLeagane.Ro !"
     }
     "14"
     {
	      "chat"    "{gold}Type !vips {default}to see VIP's {gold}list."
     }
     "15"
     {
	      "chat"    "{green}10 Helper gratuit! {default}Cerere pe forum!"
     }
     "16"
     {
	      "chat"    "{gold}Type !servers {default}for full list of {gold}servers."
     }
     "17"
     {
	      "chat"    "{green}Jump to forum! {default}click Server Website in scoreboard!"
     }
     "18"
     {
	      "chat"    "{green}Type !shop {default}to open the store {green}menu."
     }
     "19"
     {
	      "chat"    "{blue}Type !rtv {default} to change the map!"
     }
     "20"
     {
	      "chat"    "{Purple}[Karma] {default}Respectati-va coechipierii si adversarii!"
     }
     "21"
     {
	      "chat"    "{blue}Type /admins {default}to see who's on!"
     }
     "22"
     {
              "chat"    "{default}Va asteptam si pe serverul de {green}[Hide'N'Seek] {red}HnS.LaLeagane.Ro !"
     }
     "23"
     {
              "chat"    "{green}Forum [HNS]: {default}www.laleagane.ro/hns"
     }
     "24"
     {
              "chat"    "{blue}Forum [Deathmatch]: {default}www.laleagane.ro/dm"
*****}
     "25"
     {
              "chat"    "Welcome to {red} DM.LaLeagane.Ro!"
     }
     "26"
     {
              "chat"    "Add the server to favorites {blue}DM.LaLeagane.Ro"
     }
     "27"
     {
	      "chat"    "{green}Jump to forum! {default}Click Server Website in scoreboard!"
     }
     "28"
     {
              "chat"    "Type !servers {default}for full list of {gold}servers."
     }
     "29"
     {
              "chat"    "Type !rank {default}to see your {gold}rank."
     }
     "30"
     {
              "chat"    "Type !statsme {default}for full ranking {gold}stats."
     }
     "31"
     {
              "chat"    "{green}Jump to forum! {default}Click Server Website in scoreboard!"
     }
*****"32"
     {
              "chat"    "{Purple}[Karma] {default}Respect your teammates!"
*****}
     "33"
     {
              "chat"    "{green}Type !shop {default}to open the store {green}menu."
     }
     "34"
     {
	      "chat"    "{gold}Type !vips {default}to see VIP's {gold}list."
     }
     "35"
     {
              "chat"    "{default}Check the Hide'N'Seek server too {green}[HNS] {red}HnS.LaLeagane.Ro!"
     }
     "36"
     {
              "chat"    "{green}Forum [HNS]: {default}www.laleagane.ro/hns"
     }
     "37"
     {
              "chat"    "{blue}Forum [Deathmatch]: {default}www.laleagane.ro/dm"
     }
}
Now that I'm posting this I see that 25, 32, 33 has **** in front of them. I'm not sure what that means but those are not in the initial advertisements.txt
__________________
wakedb is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old 08-18-2020 , 08:48   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2144

Code:
"Advertisements"
{
	"1"
	{
		"chat"   "{lime}[RO] {default}Bine ai venit!"
	}
	"2"
	{
		"chat"   "{lime}[EN] {default}Welcome!"
	}
	"3"
	{
		"chat"   "{lime}[ESP] {default}Bienvenido!"
	}
	"4"
	{
		"chat"   "{lime}[GER] {default}Herzlich willkommen!"
	}
	"5"
	{
		"chat"   "{lime}[GAL] {default}Benvido!"
	}
	"6"
	{
		"chat"   "{lime}[RUS] {default}добро пожаловать!"
	}
	"7"
	{
		"chat"   "{lime}[IT] {default}Benvenuto!"
	}
	"8"
	{
		"chat"   "{lime}[TUR] {default}Hoş bulduk!"
	}
	"9"
	{
		"chat"   "{lime}[FRA] {default}Bienvenue!"
	}
	"10"
	{
		"chat"    "{green}Jump to forum! {default}click Server Website in scoreboard!"
	}
	"11"
	{
		"chat"    "{green}Type !shop {default}to open the store {green}menu."
	}
	"12"
	{
		"chat"    "Adaugati serverul la favorites {blue}DM.LaLeagane.Ro"
	}
	"13"
	{
		"chat"    "{default}Va asteptam si pe serverul de {green}[Hide'N'Seek] {red}HnS.LaLeagane.Ro !"
	}
	"14"
	{
		"chat"    "{gold}Type !vips {default}to see VIP's {gold}list."
	}
	"15"
	{
		"chat"    "{green}10 Helper gratuit! {default}Cerere pe forum!"
	}
	"16"
	{
		"chat"    "{gold}Type !servers {default}for full list of {gold}servers."
	}
	"17"
	{
		"chat"    "{green}Jump to forum! {default}click Server Website in scoreboard!"
	}
	"18"
	{
		"chat"    "{green}Type !shop {default}to open the store {green}menu."
	}
	"19"
	{
		"chat"    "{blue}Type !rtv {default} to change the map!"
	}
	"20"
	{
		"chat"    "{Purple}[Karma] {default}Respectati-va coechipierii si adversarii!"
	}
	"21"
	{
		"chat"    "{blue}Type /admins {default}to see who's on!"
	}
	"22"
	{
		"chat"    "{default}Va asteptam si pe serverul de {green}[Hide'N'Seek] {red}HnS.LaLeagane.Ro !"
	}
	"23"
	{
		"chat"    "{green}Forum [HNS]: {default}www.laleagane.ro/hns"
	}
	"24"
	{
		"chat"    "{blue}Forum [Deathmatch]: {default}www.laleagane.ro/dm"
	}
	"25"
	{
		"chat"    "Welcome to {red} DM.LaLeagane.Ro!"
	}
	"26"
	{
		"chat"    "Add the server to favorites {blue}DM.LaLeagane.Ro"
	}
	"27"
	{
		"chat"    "{green}Jump to forum! {default}Click Server Website in scoreboard!"
	}
	"28"
	{
		"chat"    "Type !servers {default}for full list of {gold}servers."
	}
	"29"
	{
		"chat"    "Type !rank {default}to see your {gold}rank."
	}
	"30"
	{
		"chat"    "Type !statsme {default}for full ranking {gold}stats."
	}
	"31"
	{
		"chat"    "{green}Jump to forum! {default}Click Server Website in scoreboard!"
	}
	"32"
	{
		"chat"    "{Purple}[Karma] {default}Respect your teammates!"
	}
	"33"
	{
		"chat"    "{green}Type !shop {default}to open the store {green}menu."
	}
	"34"
	{
		"chat"    "{gold}Type !vips {default}to see VIP's {gold}list."
	}
	"35"
	{
		"chat"    "{default}Check the Hide'N'Seek server too {green}[HNS] {red}HnS.LaLeagane.Ro!"
	}
	"36"
	{
		"chat"    "{green}Forum [HNS]: {default}www.laleagane.ro/hns"
	}
	"37"
	{
		"chat"    "{blue}Forum [Deathmatch]: {default}www.laleagane.ro/dm"
	}
}
Lucky_luck is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 08-18-2020 , 09:58   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2145

Quote:
Originally Posted by wakedb View Post
Now that I'm posting this I see that 25, 32, 33 has **** in front of them. I'm not sure what that means but those are not in the initial advertisements.txt
Yes, I don't know what those ***** are doing there. You also have a closing curly brace on line 3, which breaks everything after it anyway.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 08-18-2020 at 10:03.
DJ Tsunami is offline
wakedb
Member
Join Date: Dec 2019
Location: unknwn
Old 08-18-2020 , 12:26   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2146

Thank you very much both of you guys. It's working just fine now.
__________________
wakedb is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-08-2020 , 20:03   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2147

I use your plugin on the left 4 dead 2 server, but it shows the text in the chat panel, but it dont makes it colorful. for example
"{orange} WEBSITE: www.regionz.ml" shows this figure.
Darkwob is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-09-2020 , 11:39   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2148

Left 4 Dead 1 and 2 only support five chat colors: {default}, {teamcolor}, {green}, {lightgreen} and {yellow}.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-21-2020 , 22:13   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2149

Quote:
Originally Posted by DJ Tsunami View Post
Left 4 Dead 1 and 2 only support five chat colors: {default}, {teamcolor}, {green}, {lightgreen} and {yellow}.
so how can we increase this range of colors?
Darkwob is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-21-2020 , 22:43   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2150

Quote:
Originally Posted by Darkwob View Post
so how can we increase this range of colors?
Work for Valve? You can't. Deal with what you have.
__________________
Silvers 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 15:43.


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