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

[CS:S/CS:GO] CT Bans


Post New Thread Reply   
 
Thread Tools Display Modes
Fearts
ferts of daeth
Join Date: Oct 2008
Old 02-19-2012 , 12:07   Re: [CS:S] CT Bans
Reply With Quote #41

Add this line to your server.cfg:


sm_ctban_database_driver "ctban"


Then go to: addons/sourcemod/configs/databases.cfg

Add this to that file:

Code:
"ctban"
        {
            "driver"            "sqlite"
            "database"            "ctban"
        }
Restart the server.
__________________
Fearts is offline
MrBrightSide
Member
Join Date: Jun 2011
Old 03-03-2012 , 23:12   Re: [CS:S] CT Bans
Reply With Quote #42

Help D:
console
Code:
           56 <Error> "CT Ban" (1.6.0) by databomb
           57 "EZ BHop" (1.5.0) by mc.dexter | Blodia
           58 "SMAC AutoTrigger Detector" (0.7.5.8) by GoD-Tony
           59 "Basic Commands" (1.3.8) by AlliedModders LLC
           60 "MapChooser" (1.3.8) by AlliedModders LLC
           61 "Gas" (1.0.107) by <eVa>Dog
         Load Errors:
         CT Ban: Error while connecting to clientprefs database. Exiting.
23:08:15 sm cvars 56
23:08:15 [SM] Listing 6 convars for: CT Ban
           [Name]                           [Value]
           sm_ctban_database_driver         ctbans
           sm_ctban_enable                  1
           sm_ctban_joinbanmsg              To appeal this go to LTGamers.com
           sm_ctban_soundfile               buttons/button11.wav
           sm_ctban_table_prefix            
           sm_ctban_version                 1.6.0
Date base

Code:
"Databases"
{
	"driver_default"		"mysql"
	
	"sourcebans"
	{
		"driver"			"mysql"
		"host"			"XXX"
		"database"			"ltgamers_bans"
		"user"			"XXX"
		"pass"			"XXX"
		//"timeout"		"0"
		"port"			"3306"
	}
	
        "admintools"
        {
                "driver"        "mysql"
                "host"          "XXX"
                "database"      "ltgamers_advert"
                "user"          "XXX"
                "pass"          "XXX"
                //"timeout"     "0"
                //"port"        "0"
	 }

       "points"
        {
                "driver"        "mysql"
                "host"          "XXX"
                "database"      "ltgamers_points"
                "user"          "XXX"
                "pass"          "XXX"
                //"timeout"     "0"
                //"port"        "0"
        }

	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}

	"ctbans"
        {
            "driver"            "sqlite"
            "database"            "ctban"
        }
}
MrBrightSide is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 03-03-2012 , 23:52   Re: [CS:S] CT Bans
Reply With Quote #43

Make sure you add this line to server.cfg:

sm_ctban_database_driver "ctban"
__________________
Fearts is offline
MrBrightSide
Member
Join Date: Jun 2011
Old 03-04-2012 , 00:34   Re: [CS:S] CT Bans
Reply With Quote #44

i did and still broke
MrBrightSide is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-04-2012 , 04:51   Re: [CS:S] CT Bans
Reply With Quote #45

The plugin told you:

PHP Code:
CT BanError while connecting to clientprefs databaseExiting
And you're missing your clientprefs entry in your database config file. Case closed.
__________________
databomb is offline
Chaos2611
Member
Join Date: Jan 2011
Old 03-25-2012 , 00:24   Re: [CS:S] CT Bans
Reply With Quote #46

31 <Error> "CT Ban" (1.6.0) by databomb
32 "SM File/Folder Downloader and Precacher" (1.4) by SWAT_88
33 "SM_Hosties v2" (2.0.4) by databomb & dataviruset
34 "SM Jail Teams" (1.0.3) by Elad Nava
35 "SM SKINCHOOSER" (2.3) by Andi67
36 <Error> "Player Trails" (3.0.2) by Twisted|Panda
37 "Sound Commands" (1.4.2-dev) by AlliedModders LLC
38 "SourceBans" (1.4.9) by SourceBans Development Team
39 "Spray Tracer" (5.8a) by Nican132, CptMoore, Lebson506th
Load Errors:
CT Ban: Error while connecting to default database. Exiting.


Respond to this, be specific.

Database:
"ctban"
{
"driver" "default"
"host" "XXXX"
"database" "casualelite_sourcebans"
"user" "XXX"
"pass" "XXX"
//"timeout" "0"
"port" "3306"
}
"ctban"
{
"driver" "sqlite"
"database" "ctban"
}
}
Chaos2611 is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 03-25-2012 , 01:48   Re: [CS:S] CT Bans
Reply With Quote #47

Maybe because for some reason you named you sourcebans sql ctban and they are both fighting over the name.
__________________
Fearts is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-25-2012 , 08:44   Re: [CS:S] CT Bans
Reply With Quote #48

You shouldn't have two 'drivers' with the same name... where is the 'default' info?
__________________
databomb is offline
Chaos2611
Member
Join Date: Jan 2011
Old 03-25-2012 , 11:09   Re: [CS:S] CT Bans
Reply With Quote #49

Theres no default info, can you post it here
Chaos2611 is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 03-25-2012 , 12:25   Re: [CS:S] CT Bans
Reply With Quote #50

Quote:
Originally Posted by Chaos2611 View Post
Theres no default info, can you post it here
The default is whatever you set it to. If you don't have a 'default' in your config then you need to reinstall sourcemod and/or start with a fresh databases.cfg file.
__________________
databomb 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 20:19.


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