View Single Post
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 07-12-2020 , 03:17   Re: [ANY] Profile Status v2.3.3 (06/23/2020)
Reply With Quote #40

Quote:
Originally Posted by albiaps View Post
What to put in databases.cfg?
Please send me the text.

Code:
"Databases"
{
	"driver_default"		"mysql"
	
	// When specifying "host", you may use an IP address, a hostname, or a socket file path
	
	"default"
	{
		"driver"			"default"
		"host"				"localhost"
		"database"			"sourcemod"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}

	"clientprefs"
	{
		"driver"			"sqlite"
		"host"				"localhost"
		"database"			"clientprefs-sqlite"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}

        "sourcebans"
	{
		"driver"			"default"
		"host"				"*********"
		"database"			"dbs596747"
		"user"				"dbu736618"
		"pass"				"**********"
		//"timeout"			"0"
		"port"			"3306"
	}
}
You only need to configure a database if you are not going to use the standard that the plugin configures.

PHP Code:
sm_profilestatus_database "storage-local" //Database name. Change this value only if you're using another database set in databases.cfg 
Mas caso queira uma database separada para o plugin tente isso:
Code:
"profilestatus"
{
	"driver"	"sqlite"
	"database"	"profilestatus"
}
Add this to database.cfg and then change the name of the database in the cvar.
paulo_crash is offline