AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Custom Player Stats v1.4B121 (https://forums.alliedmods.net/showthread.php?t=115965)

sxslmk 03-26-2020 00:53

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

Originally Posted by Balloons (Post 2688464)
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.

BeliyKrol 04-07-2020 13:19

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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

mrelfire 04-12-2020 04:12

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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 ?

jation 04-14-2020 08:08

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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.

mrelfire 04-14-2020 08:11

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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);
                    } 


sxslmk 04-16-2020 09:22

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

Originally Posted by mrelfire (Post 2693304)
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.

timonenluca 04-22-2020 16:16

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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


Lombart 05-11-2020 05:40

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
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

Silvers 05-11-2020 06:31

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

Originally Posted by Primeas (Post 2678290)
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.

foxhound27 05-14-2020 09:22

Re: [L4D & L4D2] Custom Player Stats v1.4B121
 
2 Attachment(s)
Quote:

Originally Posted by Silvers (Post 2699438)
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.



All times are GMT -4. The time now is 01:48.

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