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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
gameguysz
Member
Join Date: Aug 2011
Location: USA
Old 08-14-2011 , 01:37   Re: Advertisements 0.5.5
Reply With Quote #1171

I installed everything right and for some reason it wont work, doesn't even recognize the commands...

I'm using this on a tf2 server.
gameguysz is offline
Warstories
Junior Member
Join Date: Aug 2011
Old 08-14-2011 , 16:42   Re: Advertisements 0.5.5
Reply With Quote #1172

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!
Warstories is offline
Raymondddd
Member
Join Date: Jun 2008
Location: Milbrae,94030
Old 08-26-2011 , 23:01   Re: Advertisements 0.5.5
Reply With Quote #1173

I have both files in place
Plugin is in sourcemod/scripting
and advertisements.txt is in sourcemod/configs

this is my advertisements.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"		"T"
		"text"		"Welcome advertisement."
	}
	"2"
	{
		"type"		"T"
		"text"		"Admin advertisement."
	}
	"3"
	{
		"type"		"T"
		"text"		"Website advertisement."
	}
	"4"
	{
		"type"		"T"
		"text"		"Email advertisement"
	}
	"5"
	{
		"type"		"T"
		"text"		"Admins: Do not abuse your powers on ANY players."
		"flags"		""
	}
}
these are my cvars in server.cfg
Code:
sm_advertisements_enabled 1
sm_advertisements_file advertisements.txt
sm_advertisements_interval 45
__________________
IN GAME NAME : Solomez
Raymondddd is offline
Send a message via ICQ to Raymondddd Send a message via AIM to Raymondddd Send a message via MSN to Raymondddd Send a message via Yahoo to Raymondddd Send a message via Skype™ to Raymondddd
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 08-26-2011 , 23:40   Re: Advertisements 0.5.5
Reply With Quote #1174

Quote:
Plugin is in sourcemod/scripting
sourcemod/plugins/
__________________
Happy Happy Joy Joy

sinblaster is offline
Raymondddd
Member
Join Date: Jun 2008
Location: Milbrae,94030
Old 08-27-2011 , 01:06   Re: Advertisements 0.5.5
Reply With Quote #1175

Quote:
Originally Posted by sinblaster View Post
sourcemod/plugins/
Really? But I thought its a .sp file not .smx
__________________
IN GAME NAME : Solomez
Raymondddd is offline
Send a message via ICQ to Raymondddd Send a message via AIM to Raymondddd Send a message via MSN to Raymondddd Send a message via Yahoo to Raymondddd Send a message via Skype™ to Raymondddd
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-27-2011 , 01:52   Re: Advertisements 0.5.5
Reply With Quote #1176

then you need to put the .smx in the plugins file... the .sp is the sourcecode, not the compiled plugin.
TnTSCS is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 08-27-2011 , 03:30   Re: Advertisements 0.5.5
Reply With Quote #1177

Raymondddd as TnT said, you dont use the .sp file for running plugs the .sp file is the pre-compiled source code.
When using plugs its the .smx file that is the key to a plug operating. So you would place the .smx file into sourcemod/plugins and you don't need to upload the .sp file at all. In fact the whole scripting folder is basically useless in regards to a server running.
__________________
Happy Happy Joy Joy

sinblaster is offline
atticusmas
Senior Member
Join Date: Jul 2011
Location: I am a hallucination
Old 08-28-2011 , 14:30   Re: Advertisements 0.5.5
Reply With Quote #1178

Where do we put the .txt file?
__________________
<a href="http://www.gametracker.com/server_info/8.6.15.53:27015/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/8.6.15.53:27015/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
atticusmas is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-28-2011 , 14:53   Re: Advertisements 0.5.5
Reply With Quote #1179

Quote:
Originally Posted by atticusmas View Post
Where do we put the .txt file?
Quote:
Originally Posted by DJ Tsunami View Post

By default the plugin reads the advertisements from configs/advertisements.txt, which has this format:
__________________
Do not Private Message @me
Bacardi is offline
atticusmas
Senior Member
Join Date: Jul 2011
Location: I am a hallucination
Old 09-03-2011 , 18:14   Re: Advertisements 0.5.5
Reply With Quote #1180

L 09/03/2011 - 15:07:14: [simple-chatcolors.smx] [SCC] Detected [Team Fortress 2].
KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file addons\sourcemod\configs\advertisements.txt
Advertisements, 4,
Ads=Broken.

Cfg file:
Code:
"Advertisements"
{
	"1"
	{
		"type"		"S"
		"text"		"Visit TethysCraft.net It is our website"
		"flags"       "a"
	}
	"2"
	{
		"type"		"S"
		"text"		"{GREEN}Forums at http://www.tethyscraft.smfnew.com/"
		"flags"       "a"
	}
	"3"
	{
		"type"		"S"
		"text"		"Please consider donating. You do get perks."
		"flags"       "a"
		
	}
	"4"
	{
		"type"		"S"
		"text"		"Ban appeals on forum
		
	}
	
	
}
__________________
<a href="http://www.gametracker.com/server_info/8.6.15.53:27015/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/8.6.15.53:27015/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
atticusmas 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 03:44.


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