SRCDS Steam group


NEED HELP WITH SOURCEMOD ADVERTISEMENTS PLUGIN!
#1
Hey, I'm having a problem, when i refresh the plugin, this happens


] rcon sm plugins reload advertisements

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt

KeyValues Error: LoadFromBuffer: missing { in file addons\sourcemod\configs\advertisements.txt
(*5*),
[SM] Plugin Advertisements reloaded successfully.

So basically, iv'e checked all over my advertisements.txt file and even borrowed a friend of mines file that has the exact same stuff (his reloads without errors) but when i reloaded mine i got the error. There are no missing { or } anywhere? Can i have some help? Thanks!
[Image: b_560_95_1.png]
Reply
#2
if you guys have no clue just reply to this thread, so i know im not the only one
[Image: b_560_95_1.png]
Reply
#3
I would recommend redownloading the file that has the default .txt file and be more careful when your editing. Try just taking out little sections at a time if you are unsure that way it doesn't break the whole plugin.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#4
(08-20-2011, 11:00 AM)CentralFrag Wrote:  I would recommend redownloading the file that has the default .txt file and be more careful when your editing. Try just taking out little sections at a time if you are unsure that way it doesn't break the whole plugin.

Thing is, it breaks when I ADD an advertisement to it.. So :/

I even added it correctly because it's in the same format of the other ads
[Image: b_560_95_1.png]
Reply
#5
How about posting the content of advertisements.txt in [ code ] tags? Then we can all look at it.
Reply
#6
(08-20-2011, 11:13 PM)gamerlv Wrote:  How about posting the content of advertisements.txt in [ code ] tags? Then we can all look at it.

Yeah sure here's whats in the txt


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"        "C"
        "text"        "Welcome to Mr.Gaming, Please add us to your favorites!"
    }
    "2"
    {
        "type"        "H"
        "text"        "Type 'shop' to view our server's store!"
    }
    "3"
    {
        "type"        "S"
        "text"        "{GREEN} Type 'steam' to join our steam group!"

    }
    "4"
    {
        "type"        "S"
        "text"        "{GREEN} Type 'forum' to join our forums, to chat with people, apply for membership for the main clan, or see special offers from our shop!"

    }
    "5"
    {
        "type"        "S"
        "text"        "{GREEN} Type !motd to read the rules!"

    }
    "6"
    {
        "type"        "S"
        "text"        "{GREEN} Put [mrg] before your name if you enjoy our server, and are in our group!"

    }

}
[Image: b_560_95_1.png]
Reply
#7
I don't see any { or } missing, but remove all the empty lines.
What Sourcemod version you're using?
Warning Level: 0%
Reply
#8
(08-21-2011, 01:37 AM)Arjen Wrote:  I don't see any { or } missing, but remove all the empty lines.
What Sourcemod version you're using?

The latest snapshot
[Image: b_560_95_1.png]
Reply
#9
(08-21-2011, 01:57 AM)warstories Wrote:  
(08-21-2011, 01:37 AM)Arjen Wrote:  I don't see any { or } missing, but remove all the empty lines.
What Sourcemod version you're using?

The latest snapshot


just removed extra spaces in lines. Still doesn't work
[Image: b_560_95_1.png]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)