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

No bans on website


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unbekannt
Junior Member
Join Date: Jan 2017
Old 03-03-2017 , 19:16   No bans on website
Reply With Quote #1

Hi,

My problem is I can't get bans to show on website. Here is my config:
Unbekannt is offline
Distortion
Member
Join Date: Feb 2017
Old 03-04-2017 , 03:54   Re: No bans on website
Reply With Quote #2

Check your sourcebans.cfg file and set your server id to 1. Actually, check your server ID on website and set it in cfg
__________________
Distortion is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 03-04-2017 , 04:57   Re: No bans on website
Reply With Quote #3

Is that really your database host?
Cooky is offline
Unbekannt
Junior Member
Join Date: Jan 2017
Old 03-04-2017 , 05:16   Re: No bans on website
Reply With Quote #4

I've got good server ID.

I think host is okay. How can I check it?

Newest info - on sourcebans website i can see the players on server but i cannot kick them or anything because it says that the player is not on the server anymore. But the player is on server

Last edited by Unbekannt; 03-04-2017 at 05:21.
Unbekannt is offline
Distortion
Member
Join Date: Feb 2017
Old 03-04-2017 , 05:28   Re: No bans on website
Reply With Quote #5

Please follow these steps in your website.
  • Login
  • Admin Panel
  • Server Settings
  • Click "To view the database config file you need to upload to your game server, click here"

Or just YOURWEBSITE/index.php?p=admin&c=servers&o=dbsetup
__________________
Distortion is offline
Unbekannt
Junior Member
Join Date: Jan 2017
Old 03-04-2017 , 05:36   Re: No bans on website
Reply With Quote #6

Here is what it says:



and my database.cfg is in first post. Any ideas?
Unbekannt is offline
Distortion
Member
Join Date: Feb 2017
Old 03-04-2017 , 05:44   Re: No bans on website
Reply With Quote #7

Simply, host can't be "localhost". It works on local and local only.
Check your website cpanel for more informations about remote sql.
Also you can find your remote host by connecting phpmysql website.
In my case, my website is dumancsgo.com but my sqlserver is furina.alastyr.com:2083
__________________
Distortion is offline
Unbekannt
Junior Member
Join Date: Jan 2017
Old 03-04-2017 , 08:34   Re: No bans on website
Reply With Quote #8

Yes I know, i put in "host" my forum adress (www.cs-server.pl). Can you please tell me where should i look for sqlserver adress?
Sorry, I'm new in this kind of stuff

Last edited by Unbekannt; 03-04-2017 at 08:37.
Unbekannt is offline
Distortion
Member
Join Date: Feb 2017
Old 03-04-2017 , 08:58   Re: No bans on website
Reply With Quote #9

PHP Code:
<?php
$servername 
"localhost";
$username "username";
$password "password";

// Create connection
$conn = new mysqli($servername$username$password);

// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);

echo 
"Connected successfully";
?>
Test this code. Use servername cs-server.pl and if it works let us know.
__________________
Distortion 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 13:24.


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