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

[ANY]Warning system[UPDATED 2011-12-12]


Post New Thread Reply   
 
Thread Tools Display Modes
angel635
Senior Member
Join Date: Apr 2011
Old 06-07-2011 , 05:35   Re: [CS:S] Warning system
Reply With Quote #11

hi MindeLT


that must be added to the database?
angel635 is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 06-07-2011 , 09:06   Re: [CS:S] Warning system
Reply With Quote #12

@ lokizito

Thx for another advise, will do

@angel635

You should add connection information to addons/sourcemod/configs/database.cfg

it should be something like this(open file, and you'll see)

"default"
adress: localhost
user: your_db_user
password: your_db_password
database: database_name
MindeLT is offline
Send a message via Skype™ to MindeLT
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 06-08-2011 , 08:25   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #13

Updated v4.0
MindeLT is offline
Send a message via Skype™ to MindeLT
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 06-08-2011 , 16:35   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #14

is this right Mindelt?

"warn_system_public"
{
"driver" "mysql"
"host" "111.111.111.11"
"database" "xxxx"
"user" "xxxx"
"pass" "xxxx"
//"timeout" "0"
"port" "3306"
}
__________________
Happy Happy Joy Joy

sinblaster is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 06-09-2011 , 05:02   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #15

Quote:
Originally Posted by sinblaster View Post
is this right Mindelt?

"warn_system_public"
{
"driver" "mysql"
"host" "111.111.111.11"
"database" "xxxx"
"user" "xxxx"
"pass" "xxxx"
//"timeout" "0"
"port" "3306"
}
it uses "default", no need of warn_system_public.

"default"
{
"driver" "mysql"
"host" "111.111.111.11"
"database" "xxxx"
"user" "xxxx"
"pass" "xxxx"
//"timeout" "0"
"port" "3306"
MindeLT is offline
Send a message via Skype™ to MindeLT
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 06-09-2011 , 05:42   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #16

ahh ok thanks heaps. So out of interest as I am a little noobish, how does your plug know to go to that database and not sourcebans for instance which is in the same file??

i.e
"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" "mysql"
"host" "111.111.11.11"
"database" "xxxxxx_xxxxxx"
"user" "xxxxxx_xxxxxx"
"pass" "xxxxxx"
//"timeout" "0"
"port" "3306"
}
{
"driver" "mysql"
"host" "111.111.111.11"
"database" "xxxxxx_warn"
"user" "xxxxxx"
"pass" "xxxxxx"
//"timeout" "0"
"port" "3306"
}
}
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 06-09-2011 at 05:45.
sinblaster is offline
zepper
BANNED
Join Date: May 2009
Location: Latvia, Riga
Old 06-09-2011 , 07:12   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #17

Quote:
Originally Posted by MindeLT View Post
it uses "default", no need of warn_system_public.

"default"
{
"driver" "mysql"
"host" "111.111.111.11"
"database" "xxxx"
"user" "xxxx"
"pass" "xxxx"
//"timeout" "0"
"port" "3306"
I THINK the "defoult" is for driver for example "mysql" and there should be a server side name for database like:
Code:
"Databases"
{
    "driver_default"        "mysql"
    
    "WARNING"
    {
        "driver"            "default"
        "host"                "db_IP"
        "database"            "db_name"
        "user"                "db_user"
        "pass"                "db_pass"
        //"timeout"            "0"
        "port"            "3306"
    }
}
zepper is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 06-09-2011 , 15:03   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #18

thats what I believe, but I believe allot of stuff that is apparently just "A TRAP"
__________________
Happy Happy Joy Joy

sinblaster is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 06-09-2011 , 15:16   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #19

You dont need to add different connections, if you have MySQL running in your server, just create A TABLE, in any database you're connecting, and thats all For example, i'm runing only 1 connection to database, there is all the admin tables, web tables and etc. In the same database, just in different table you can create user_warn table.
MindeLT is offline
Send a message via Skype™ to MindeLT
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 06-09-2011 , 15:18   Re: [CS:S] Warning system[UPDATED 2011-06-08]
Reply With Quote #20

OK so if I have 4 databases connected to the game server, ie Sourcebans and a few others I am thinking of running like VIP and stats databases for other mods. Your plug is just going to search until it finds the database with your table?
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 06-09-2011 at 15:50.
sinblaster 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:09.


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