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

[LOCKED] Stats plugin


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 09:36   Re: [BIG REQ] Stats plugin
#51

Well, I finished your request (except #4) and now the plugin crashes the compiler and I have no idea why.

Here's the code anyway:
Attached Files
File Type: sma Get Plugin or Get Source (stats_custom.sma - 370 views - 38.6 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-19-2012 at 20:18.
Exolent[jNr] is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 15:23   Re: [BIG REQ] Stats plugin
#52

Fixed the compile issue.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 04-19-2012 , 17:39   Re: [BIG REQ] Stats plugin
#53

I am really happy that again you started working on the project there are to problems.

1. It doesn`t show the top and bot statistics and when I write /rank it writes me "You are not ranked" but i have kills and deaths.
2. I don`t know if it`s from the plugin or from me but osmetimes when I write the commands it takes a little time before they "load".
Lolz0r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 17:57   Re: [BIG REQ] Stats plugin
#54

1. Check for error messages in the logs.

2. It's because queries are threaded to not lock up the server. For instant results, change:
PHP Code:
#define THREAD_QUERIES 
to
PHP Code:
//#define THREAD_QUERIES 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 04-19-2012 , 18:12   Re: [BIG REQ] Stats plugin
#55

When csstats_rank is 1 not logs, but when cvar is 0, in console show this:

Code:
L 04/20/2012 - 00:22:02: [stats_custom.amxx] Error on query: saving player stats: near "0": syntax error
Lolz0r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 20:18   Re: [BIG REQ] Stats plugin
#56

Quote:
Originally Posted by Lolz0r View Post
When csstats_rank is 1 not logs, but when cvar is 0, in console show this:

Code:
L 04/20/2012 - 00:22:02: [stats_custom.amxx] Error on query: saving player stats: near "0": syntax error
Fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TRUE RED
Senior Member
Join Date: Mar 2012
Location: Ukraine
Old 04-19-2012 , 22:28   Re: [BIG REQ] Stats plugin
#57

is it possible to make motd in standart stats.amxx the same like in yours?
TRUE RED is offline
Send a message via ICQ to TRUE RED Send a message via Skype™ to TRUE RED
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-20-2012 , 09:43   Re: [BIG REQ] Stats plugin
#58

Quote:
Originally Posted by TRUE RED View Post
is it possible to make motd in standart stats.amxx the same like in yours?
Yeah, just change the formatting in stats.sma.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TRUE RED
Senior Member
Join Date: Mar 2012
Location: Ukraine
Old 04-20-2012 , 10:38   Re: [BIG REQ] Stats plugin
#59

I was looking over stats.sma and found only this line (and a couple below in stats.sma) that makes any sense to change
Code:
 format_top15(sBuffer[MAX_BUFFER_LENGTH + 1])
But i have no idea how to change the formatting stats.sma. If it isn't so difficult can you make it for me please?
TRUE RED is offline
Send a message via ICQ to TRUE RED Send a message via Skype™ to TRUE RED
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 04-20-2012 , 13:28   Re: [BIG REQ] Stats plugin
#60

Now /top15 stats shows only the last player, who was killed or he killed someone. Also when i kill someone it shows me I have 0 kills and 1 death. The problem with freeze for 2-3 seconds on kill/death is still not fixed.

Also you can make command /inforank which will turn off/on the function for showing the up/down ranking. And if you want you can already put MOTD page (this one i uploaded before).

Last edited by Lolz0r; 04-22-2012 at 06:17.
Lolz0r is offline
Closed Thread



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 08:56.


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