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

Solved Miscstats error with build 5247


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jay7
Senior Member
Join Date: Jun 2004
Old 06-05-2019 , 09:37   Miscstats error with build 5247
Reply With Quote #1

Couldn’t log into bug report system. Using 5247 and I get this error once or twice a day which I never did before updating versions. Could be caused by newly installed plugins and with 150+ plugins running, this is one of the very few errors I get. Maybe add connect check for killer and victim here will fix this.

Code:
L 06/04/2019 - 21:54:17: Start of error session.
L 06/04/2019 - 21:54:17: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20190604.log")
L 06/04/2019 - 21:54:17: [CSTRIKE] Invalid player 10 (not in-game)
L 06/04/2019 - 21:54:17: [AMXX] Displaying debug trace (plugin "miscstats.amxx", version "1.9.0.5247")
L 06/04/2019 - 21:54:17: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 06/04/2019 - 21:54:17: [AMXX]    [0] miscstats.sma::client_death (line 538)
L 06/04/2019 - 21:54:17: [CSTRIKE] Invalid player 12 (not in-game)
L 06/04/2019 - 21:54:17: [AMXX] Displaying debug trace (plugin "miscstats.amxx", version "1.9.0.5247")
L 06/04/2019 - 21:54:17: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 06/04/2019 - 21:54:17: [AMXX]    [0] miscstats.sma::client_death (line 538)

Last edited by jay7; 06-15-2019 at 10:46.
jay7 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-11-2019 , 11:49   Re: Miscstats error with build 5247
Reply With Quote #2

Have you updated your server yet?

Code:
-if (wpnindex == CSW_C4)
+if (wpnindex == CSW_C4 || !is_user_connected(victim))
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
jay7
Senior Member
Join Date: Jun 2004
Old 06-11-2019 , 12:18   Re: Miscstats error with build 5247
Reply With Quote #3

I haven’t rechecked the code but I did add connect checks for victim and killer near the beginning of the function and haven’t had any errors in the last 5 days or so. I’ll try your method later which would likely be a better fix.

Last edited by jay7; 06-11-2019 at 12:38.
jay7 is offline
jay7
Senior Member
Join Date: Jun 2004
Old 06-15-2019 , 10:45   Re: Miscstats error with build 5247
Reply With Quote #4

I haven’t gotten errors with the code provided above after a few days. So, likely no need to check for killer as well. Hopefully, one of the mods here will run this by the team.
jay7 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 14:56.


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