AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   ImportBans Using hlstatsxban.php (https://forums.alliedmods.net/showthread.php?t=238966)

DezzY 04-19-2014 09:48

ImportBans Using hlstatsxban.php
 
Hello hlstatsx community,

I have my hlstatsx webpage fully configured and working 100%...

But i see this option of getting the bans on the hlstatsx page.

So i tried to "install" but give me an error

My hlstatsx webpage: http://cm.skillsoldiers.pt/hlstatsx/hlstats.php

Your version is 1.6.19
You are up to date

I configure the hlstatsxban.cfg. ( put the SourceBans DB and the HLX BD)

So far so good!

Run the comand by putty "php hlstatsxban.php"

and give me this:

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
[+] Successfully connected to SourceBans database. Retrieving bans now.
[+] Retrieved 1 banned and 0 unbanned players from SourceBans.
[+] Successfully connected to HLstatsX database server. Updating players...
[-] Error hiding banned players: No database selectedroot@skillsoldiers:/var/scripts/ImportBans#

If some one can help me Tanks

My best regards

Ps: bad english i'm portuguese :D

XAFAfterShock 04-19-2014 17:58

Re: ImportBans Using hlstatsxban.php
 
at the bottom of the hlstatsban.cfg you'll find this, mine is already changed but you put the name of your stats database in $hlxdbs. took me about 30 min to figure this out because there isn't a single guide for a windows install that is even 75% accurate
/********************************************* ****
/* We're using different databases for each of our server to isolate each ranking
/* Type the HLstatsX database name here like
/* $hlxdbs[] = "databasename";
/* It's fine to just type one database.
********************************************* *****/
$hlxdbs = array();
$hlxdbs[] = "stats";

DezzY 04-20-2014 10:05

Re: ImportBans Using hlstatsxban.php
 
Tanks for your reply :D

Give another arror:

[+] Successfully connected to SourceBans database. Retrieving bans now.
[+] Retrieved 1 banned and 0 unbanned players from SourceBans.
[+] Successfully connected to HLstatsX database server. Updating players...
[-] Error hiding banned players: Table 'hlx.hlx_Players' doesn't exist root@skillsoldiers:/var/scripts/ImportBans#

Best regards

DezzY 04-20-2014 10:29

Re: ImportBans Using hlstatsxban.php
 
Never mind I fixed...

so... i put my DB in the correct spot

Code:

$hlxdbs = array();
$hlxdbs[] = "hlx";

Code:

[-] Error hiding banned players: Table 'hlx.hlx_Players' doesn't exist root@skillsoldiers:/var/scripts/ImportBans#
In the database ther is no table called hlx_players only hlstats_Players.

I tried to change the HLX_PREFIX but give my an error...

So i change the HLX_PREFIX in the hlstatsxban.cfg

Code:

//** HLSTATSX MYSQL INFO ------------------------------
// http://www.hlxcommunity.com/
define('HLX_HOST', 'localhost');      // MySQL host
define('HLX_PORT', 3306);            // MySQL port (Default 3306)
define('HLX_USER', 'hlx');              // MySQL user
define('HLX_PASS', 'ventil');              // MySQL password
define('HLX_PREFIX', 'hlstats');      // MySQL table prefix


ANd it works :D

tanks for your help !!!

+KARMA

XAFAfterShock 04-20-2014 12:29

Re: ImportBans Using hlstatsxban.php
 
glad you got it straightened out


All times are GMT -4. The time now is 03:33.

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