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

ImportBans Using hlstatsxban.php


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DezzY
SourceMod Donor
Join Date: Apr 2012
Location: Portugal
Old 04-19-2014 , 09:48   ImportBans Using hlstatsxban.php
Reply With Quote #1

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
__________________
DezzY is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 04-19-2014 , 17:58   Re: ImportBans Using hlstatsxban.php
Reply With Quote #2

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";
XAFAfterShock is offline
DezzY
SourceMod Donor
Join Date: Apr 2012
Location: Portugal
Old 04-20-2014 , 10:05   Re: ImportBans Using hlstatsxban.php
Reply With Quote #3

Tanks for your reply

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 is offline
DezzY
SourceMod Donor
Join Date: Apr 2012
Location: Portugal
Old 04-20-2014 , 10:29   Re: ImportBans Using hlstatsxban.php
Reply With Quote #4

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

tanks for your help !!!

+KARMA
__________________
DezzY is offline
XAFAfterShock
Member
Join Date: Feb 2009
Old 04-20-2014 , 12:29   Re: ImportBans Using hlstatsxban.php
Reply With Quote #5

glad you got it straightened out
XAFAfterShock 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 01:36.


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