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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Finest
Member
Join Date: Dec 2006
Location: New York
Old 12-19-2009 , 16:11   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #841

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.
__________________

Last edited by Finest; 12-19-2009 at 16:13. Reason: Fixed the problem
Finest is offline
Diesel47
Junior Member
Join Date: Dec 2009
Old 12-19-2009 , 17:46   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #842

Quote:
Originally Posted by Finest View Post

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.
What do you mean?

I think I might have the same issue..

My ads don't show up either.
Diesel47 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 12-20-2009 , 07:48   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #843

Quote:
Originally Posted by Diesel47 View Post
Code:
{
    "1"
    {
        "type"        "s"
        "text"        "{DEFAULT}Our Rank controls (Type Into Chat): Rank, Top10, Players, Session."
    }
    "2"
    {
        "type"        "S"
        "text"        "{DEFAULT}Are the constant ranking notifications annoying you? Type: '{DEFAULT}Hidepoints{DEFAULT}' to hide them, and '{DEFAULT}Unhidepoints{DEFAULT}' to bring them back."
    }
    "3"
    {
        "type"        "S"
        "text"        "{DEFAULT}Vote Scramble is activated on this server. Type '!Scramble' to fix stacked teams!"
    }
    "4"
    {
        "type"        "S"
        "text"        "{DEFAULT}Current Map: {CURRENTMAP}"
    }
        "5"
        {
                "type"          "S"
                "text"          "{DEFAULT}74.63.54.135:27015 {DEFAULT}|{DEFAULT} Add us to favorites!"
        }
        "6"
        {
                "type"          "S
                "text"          "{DEFAULT}To the community members: Donate $12 and receive 2 months of admin. To donate: Send an email to {DEFAULT}[email protected]"
        }
        "7"
        {
                "type"          "S"
                "text"          "{DEFAULT}Please respect every player!"
        }
        "8"
        {
                "type"          "S"
                "text"          "{DEFAULT}Type {DEFAULT}motd{DEFAULT} for Rules and Information!"
        }
        "9"
        {
                "type"          "S"
                "text"          "{DEFAULT}Abusive admin? Hacker?! Bad sport? Report them all to {DEFAULT}[email protected]"
        }
        "10"
        {
                "type"          "S"
                "text"          "{DEFAULT}Have a suggestion for new maps? How things should be done? Anything else? - Email {DEFAULT}[email protected]{DEFAULT} with your suggestions"
        }
        "11"
        {
                "type"          "S"
                "text"          "{DEFAULT}Welcome to the [SS] Community server!"
        "12"
        {
                "type"          "S"
                "text"          "{DEFAULT}We listen to our players! Sv_Pure set to 0! Woohoo!"
        }

}
Mine is broken :\

Only advertisements #5 and 3 show up in the server... The others just don't come..

Whats going on?
lowercase s and missing quote.
__________________
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
Diesel47
Junior Member
Join Date: Dec 2009
Old 12-20-2009 , 12:29   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #844

Oh my god..

What is wrong now?

I double checked it, no lowercase S or missing ""s

PHP Code:
{
    
"1"
    
{
        
"type"        "S"
        "text"        "{DEFAULT}Our Rank controls:{GREEN} Rank, Top10, Players, Session."
    
}
    
"2"
    
{
        
"type"        "S"
        "text"        "{DEFAULT}Are the constant ranking notifications annoying you? Type: '{GREEN}Hidepoints{DEFAULT}' to hide them, and '{GREEN}Unhidepoints{DEFAULT}' to bring them back."
    
}
    
"3"
    
{
        
"type"        "S"
        "text"        "{DEFAULT}Enjoy your stay! Bad sports and flamers will be perma-banned."
    
}
    
"4"
    
{
        
"type"        "S"
        "text"        "{DEFAULT}Current Map: {CURRENTMAP}"
    
}
        
"5"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Had fun playing here? Add us to your favorites: 74.63.54.135:27015"
        
}
        
"6"
        
{
                
"type"          "S"
                "text"          "{GREEN}[SS] Members{DEFAULT} Donate $10 and receive 1 month of full admin, access to all the hats, and more."
        
}
        
"7"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Please respect every player!"
        
}
        
"8"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Type {GREEN}motd {DEFAULT}for Rules and Information!"
        
}
        
"9"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Abusive admin? Hacker?! Bad sport? Report them all to [email protected]"
        
}
        
"10"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Have a suggestion for how things should be done? Requests? Comments? Questions? - Email [email protected]"
        
}
        
"11"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Welcome to the [SS] Community server!"
        "12"
        
{
                
"type"          "S"
                "text"          "{GREEN}Donators{DEFAULT} have access to all the hats!"
        
}
        
"13"
        
{
                
"type"          "S"
                "text"          "{GREEN}Donators{DEFAULT} will get a reserved slot on the server."
        
}
        
"14"
        
{
                
"type"          "S"
                "text"          "{GREEN}Donators{DEFAULT} will also get basic admin controls."
        
}
        
"15"
        
{
                
"type"          "S"
                "text"          "{GREEN}Donating {DEFAULT}is cheap, only $5 a month!"
        
}
        
"16"
        
{
                
"type"          "S"
                "text"          "{DEFAULT}Want to donate or become a member? Add any [SS] member and request to talk to diesel. Or send an email to [email protected]"
        
}


Everything under #11 doesn't work.


Diesel47 is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 12-20-2009 , 12:40   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #845

Quote:
Originally Posted by Diesel47 View Post
Everything under #11 doesn't work.


missing "}"
__________________
altex is offline
Diesel47
Junior Member
Join Date: Dec 2009
Old 12-20-2009 , 13:12   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #846

Quote:
Originally Posted by altex View Post
missing "}"

Damn, How am I so unobservant?


Thanks again for your keen eye.
Diesel47 is offline
spicytuna
Junior Member
Join Date: Dec 2009
Old 12-21-2009 , 06:42   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #847

How come only 2 colors are suppoted for sm_say? =(

Most servers use it the most... Is there any way I can use red, orange, etc. for sm_say ?
spicytuna is offline
laufer
Member
Join Date: Dec 2009
Location: Russia, Moscow
Old 12-21-2009 , 13:35   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #848

Hi! Nice plugin.
Is where any language support except english?
laufer is offline
Send a message via ICQ to laufer
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 12-21-2009 , 13:46   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #849

Quote:
Originally Posted by laufer View Post
Hi! Nice plugin.
Is where any language support except english?
Yep, what ever language you type your advertisements in will display on your server.
SuperShadow is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 12-21-2009 , 14:44   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #850

Quote:
Originally Posted by spicytuna View Post
How come only 2 colors are suppoted for sm_say? =(

Most servers use it the most... Is there any way I can use red, orange, etc. for sm_say ?
No, because Valve doesn't allow those colors. So complain to Valve about not allowing more colors.
__________________
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
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 02:03.


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