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

sm_addban not working. Sourcebans problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crystalline
Member
Join Date: Jul 2016
Old 08-28-2016 , 18:12   sm_addban not working. Sourcebans problem.
Reply With Quote #1

Every time I attempt to ban a player through the use of the sm_addban command, I get the following lines of errors:

L 08/28/2016 - 16:57:02: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 08/28/2016 - 16:57:02: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 08/28/2016 - 16:57:02: [SM] [0] Line 653, D:\scripting\sourcebans.sp::CommandAddBan()

Any help?

Thanks.

EDIT: This may or may not be related to the MYSQL server thingy. I think I need to add the right address to the databases.cfg file, right?

Last edited by Crystalline; 08-28-2016 at 18:22.
Crystalline is offline
Bonnis
Senior Member
Join Date: Apr 2013
Old 08-29-2016 , 04:39   Re: sm_addban not working. Sourcebans problem.
Reply With Quote #2

Hey i think its database related.
Could you please insert your database.cfg here? remove PW and so on.

Is the server and databases on the same server/host?
Is the server and databas are not on the same host, then you need to add your CSGO server IP
on the databas host "external databas".

otherwise it never works.

//Bonnis
Bonnis is offline
Crystalline
Member
Join Date: Jul 2016
Old 08-29-2016 , 14:12   Re: sm_addban not working. Sourcebans problem.
Reply With Quote #3

Quote:
Originally Posted by Bonnis View Post
Hey i think its database related.
Could you please insert your database.cfg here? remove PW and so on.

Is the server and databases on the same server/host?
Is the server and databas are not on the same host, then you need to add your CSGO server IP
on the databas host "external databas".

otherwise it never works.

//Bonnis
I'll add the file in an attachment
Attached Files
File Type: cfg databases.cfg (480 Bytes, 184 views)

Last edited by Crystalline; 08-30-2016 at 00:39.
Crystalline is offline
Reply


Thread Tools
Display Modes

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 09:14.


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