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

HeadShot-Master - stats for headshots incl. MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
Leichenklaus
Member
Join Date: Mar 2004
Location: Germany
Old 06-07-2010 , 09:17   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #91

Hi Hoelsch
I'm sorry but because of my job I can't program anything at the moment and I don't have a testing server nor the time for helping you with this specific error but I'll try.
Have you changed anything in the code or is all on default settings? The error seems to point out an array overflow...
Send me the code lines where the errors appear (232 and 8

GreetZ Leichenklaus
Leichenklaus is offline
Hoelsch
Member
Join Date: Aug 2005
Old 06-07-2010 , 09:41   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #92

Line 81 - 88:
Code:
#if defined USING_SQL
   register_cvar("amx_sql_host","127.0.0.1")      /* fill in your mysql access data */
   register_cvar("amx_sql_user","root")
   register_cvar("amx_sql_pass","")
   register_cvar("amx_sql_db","amx")
   tableOLD = "hsmaster" /* table where the last week's ranking will be saved */
   table = "hsliste"   /* table where the ranking will be saved */
   LoadMaster()
Line 231 - 236:
Code:
while( dbi_nextrow(Res) > 0 ) {
    dbi_result(Res, "nick", nick[pos], 32)
    dbi_result(Res, "steamid", steamid[pos], 32)
    dbi_result(Res, "kills", kills[pos], 5)
    pos++
}
The only thing i changed is the #define USING_SQL, cause I'm using MySQL.

Thank you for helping me.
Hoelsch is offline
Hoelsch
Member
Join Date: Aug 2005
Old 06-13-2010 , 07:09   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #93

No idea?
Hoelsch is offline
madeitout
Member
Join Date: Jun 2008
Old 03-24-2011 , 19:05   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #94

heres a rewritten version that uses the headshot count from the csx stats module.
make sure you upload the misc/hsmaster.wav from the original post.
Attached Files
File Type: sma Get Plugin or Get Source (hs_master.sma - 595 views - 4.1 KB)
__________________
madeitout is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-13-2012 , 07:55   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #95

Quote:
L 02/13/2012 - 17:55:20: [AMXX] Plugin "hs_master.amxx" failed to load: Module/Library Class "dbi" required for plugin. Check modules.ini.
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 02-13-2012 at 07:55.
GordonFreeman (RU) is offline
Old 04-03-2012, 13:07
jonnzus
This message has been deleted by jonnzus.
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 04-21-2012 , 16:28   Re: HeadShot-Master - stats for headshots incl. MySQL
Reply With Quote #96

Can someone help?
04/21/2012 - 15:20:28: [AMXX] Displaying debug trace (plugin "hs_master.amxx")
L 04/21/2012 - 15:20:28: [AMXX] Run time error 4: index out of bounds
L 04/21/2012 - 15:20:28: [AMXX] [0] hs_master.sma::LoadMaster (line 232)
L 04/21/2012 - 15:20:28: [AMXX] [1] hs_master.sma::plugin_init (line 8

Any idea why game server cant access to MySql database but .php file connect to MySql..?

Code:
// Uncomment for SQL version
#define USING_SQL
Code:
#if defined USING_SQL
   register_cvar("amx_sql_host","188.92.xxx.xx")      /* fill in your mysql access data */
   register_cvar("amx_sql_user","userxxx")
   register_cvar("amx_sql_pass","xxxl")
   register_cvar("amx_sql_db","userxxx")
   tableOLD = "hsmaster" /* table where the last week's ranking will be saved */
   table = "hsliste"   /* table where the ranking will be saved */
e. what should here be?

register_cvar("HS_Master", "to here?")
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.

Last edited by jonnzus; 04-21-2012 at 17:17.
jonnzus 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 17:00.


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