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

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 03-26-2020 , 00:53   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1931

Quote:
Originally Posted by Balloons View Post
Ranking page of my web stats suddenly stopped working with a http 500 error but other pages work perfectly fine. None of the php files or folders have been edited. Either it is my host or what else could have caused this?

EDIT: A player that had a name with several special characters joined and since then the Ranking page broke. After deleting their table from database, the page worked again like normal. I believe there is encoding issue?
Another problem is when somone joins server with local ipaddress(eg. 172.16.0.x) then webpage will become blank, it will works fine after you remove his data from database.
sxslmk is offline
BeliyKrol
New Member
Join Date: Apr 2020
Old 04-07-2020 , 13:19   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1932

Hi, after installing everything and connected to mysql, the site works and the game works! Rank and other commands. But I don't know why, but it doesn't save the information. Could you help me please?

My discord Белый Кроль # 7638
Site https://quarantine.myarena.site/index.php

Last edited by BeliyKrol; 04-07-2020 at 13:19.
BeliyKrol is offline
mrelfire
Member
Join Date: May 2010
Old 04-12-2020 , 04:12   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1933

I have a slight problem.
If you IP is local (i.E. class C you crash)
=> this will stop the ranking pages to work, how to bypass it please ?

P.S.
do you want a dumps of my table ?

Last edited by mrelfire; 04-14-2020 at 03:40.
mrelfire is offline
jation
New Member
Join Date: Apr 2020
Old 04-14-2020 , 08:08   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1934

Same problem here. With local ip address, loopback in l4d_players table, ranking page is blank.
If I manually edit this value, everythings works fine again.
jation is offline
mrelfire
Member
Join Date: May 2010
Old 04-14-2020 , 08:11   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1935

this the moficiation I made
PHP Code:
                    if (substr($row['ip'],0,3) == "192")  {
                        
$country_record2 "fr";
                    }    
                    else
                    {
                        
$country_record $geoip->country($row['ip']);
                        
$country_record2 strtolower($country_record->country->isoCode);
                    } 
mrelfire is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-16-2020 , 09:22   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1936

Quote:
Originally Posted by mrelfire View Post
this the moficiation I made
PHP Code:
                    if (substr($row['ip'],0,3) == "192")  {
                        
$country_record2 "fr";
                    }    
                    else
                    {
                        
$country_record $geoip->country($row['ip']);
                        
$country_record2 strtolower($country_record->country->isoCode);
                    } 
Thanks, works.

Last edited by sxslmk; 04-16-2020 at 09:23.
sxslmk is offline
timonenluca
Member
Join Date: Apr 2020
Location: Europe
Old 04-22-2020 , 16:16   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1937

Anyone have a fix for this? it spams my log. Otherwise great plugin!

Also where is the source? and the glow.inc file? I can't seem to compile it :S

Code:
L 04/22/2020 - 21:57:40: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
L 04/22/2020 - 21:57:40: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 04/22/2020 - 21:57:40: [SM] Blaming: l4d_stats.smx
L 04/22/2020 - 21:57:40: [SM] Call stack trace:
L 04/22/2020 - 21:57:40: [SM]   [0] KillTimer
L 04/22/2020 - 21:57:40: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
L 04/22/2020 - 21:57:40: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 04/22/2020 - 21:57:40: [SM] Blaming: l4d_stats.smx
L 04/22/2020 - 21:57:40: [SM] Call stack trace:
L 04/22/2020 - 21:57:40: [SM]   [0] KillTimer
L 04/22/2020 - 21:57:40: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
L 04/22/2020 - 21:57:40: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 04/22/2020 - 21:57:40: [SM] Blaming: l4d_stats.smx
L 04/22/2020 - 21:57:40: [SM] Call stack trace:
L 04/22/2020 - 21:57:40: [SM]   [0] KillTimer
L 04/22/2020 - 21:57:40: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
timonenluca is offline
Lombart
New Member
Join Date: May 2020
Old 05-11-2020 , 05:40   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1938

dear friends, i stuck for 2 days, my server keep sending log like this

Code:
L 05/11/2020 - 16:50:54: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 05/11/2020 - 16:50:54: [SM] Blaming: l4d_stats.smx
L 05/11/2020 - 16:50:54: [SM] Call stack trace:
L 05/11/2020 - 16:50:54: [SM]   [0] KillTimer
L 05/11/2020 - 16:50:54: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
L 05/11/2020 - 16:50:58: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 05/11/2020 - 16:50:58: [SM] Blaming: l4d_stats.smx
L 05/11/2020 - 16:50:58: [SM] Call stack trace:
L 05/11/2020 - 16:50:58: [SM]   [0] KillTimer
L 05/11/2020 - 16:50:58: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
L 05/11/2020 - 16:51:15: [SM] Exception reported: Invalid timer handle 0 (error 4)
L 05/11/2020 - 16:51:15: [SM] Blaming: l4d_stats.smx
L 05/11/2020 - 16:51:15: [SM] Call stack trace:
L 05/11/2020 - 16:51:15: [SM]   [0] KillTimer
L 05/11/2020 - 16:51:15: [SM]   [1] Line 1416, C:\Users\Pablo\Desktop\text and plugin files\sm1.8\scripting\l4d_stats (primeas)4.sp::OnClientDisconnect
i don't know why, need some help

Last edited by Lombart; 05-11-2020 at 05:53.
Lombart is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-11-2020 , 06:31   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1939

Quote:
Originally Posted by Primeas View Post
post #1894
Wheres the source? You must provide the source it's not optional.


PHP Code:
public Action TIMER_ADVICE(Handle timerany client)
{
    
PrintHintText(client"Write '!stats' to open the Menu, '!rank' to show your Rank.");
    if (
stats_advice[client] != INVALID_HANDLE)
    {
        
KillTimer(stats_advice[client]);
        
stats_advice[client] = INVALID_HANDLE;
    }
    return 
Plugin_Continue;

Should be:
PHP Code:
public Action TIMER_ADVICE(Handle timerany client)
{
    
stats_advice[client] = INVALID_HANDLE;
    
PrintHintText(client"Write '!stats' to open the Menu, '!rank' to show your Rank.");

Don't kill timers from inside the timer, use return Plugin_Stop instead. This isn't a repeating timer and not required.

The plugins a complete mess. Old syntax, bad methods etc.
__________________

Last edited by Silvers; 05-11-2020 at 06:37.
Silvers is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 05-14-2020 , 09:22   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1940

Quote:
Originally Posted by Silvers View Post
Wheres the source? You must provide the source it's not optional.


PHP Code:
public Action TIMER_ADVICE(Handle timerany client)
{
    
PrintHintText(client"Write '!stats' to open the Menu, '!rank' to show your Rank.");
    if (
stats_advice[client] != INVALID_HANDLE)
    {
        
KillTimer(stats_advice[client]);
        
stats_advice[client] = INVALID_HANDLE;
    }
    return 
Plugin_Continue;

Should be:
PHP Code:
public Action TIMER_ADVICE(Handle timerany client)
{
    
stats_advice[client] = INVALID_HANDLE;
    
PrintHintText(client"Write '!stats' to open the Menu, '!rank' to show your Rank.");

Don't kill timers from inside the timer, use return Plugin_Stop instead. This isn't a repeating timer and not required.

The plugins a complete mess. Old syntax, bad methods etc.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_stats.sp - 277 views - 364.1 KB)
File Type: inc glow.inc (3.1 KB, 204 views)
foxhound27 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 23:10.


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