AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Miscstats error with build 5247 (https://forums.alliedmods.net/showthread.php?t=316688)

jay7 06-05-2019 09:37

Miscstats error with build 5247
 
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)


DruGzOG 06-11-2019 11:49

Re: Miscstats error with build 5247
 
Have you updated your server yet?

Code:

-if (wpnindex == CSW_C4)
+if (wpnindex == CSW_C4 || !is_user_connected(victim))


jay7 06-11-2019 12:18

Re: Miscstats error with build 5247
 
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.

jay7 06-15-2019 10:45

Re: Miscstats error with build 5247
 
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.


All times are GMT -4. The time now is 17:20.

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