View Single Post
Sples1
Senior Member
Join Date: Apr 2016
Location: Kitsune Lab
Old 03-28-2021 , 06:51   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #87

Quote:
Originally Posted by L4D2Noob View Post
Can I get rid of the following error?
Code:
L 03/25/2021 - 23:27:50: Error log file session closed.
L 03/25/2021 - 23:28:03: SourceMod error session started
L 03/25/2021 - 23:28:03: Info (map "$2000$") (file "/game/cstrike/addons/sourcemod/logs/errors_20210325.log")
L 03/25/2021 - 23:28:03: [SM] Exception reported: Invalid index -1 (count: 5)
L 03/25/2021 - 23:28:03: [SM] Blaming: hl_bandisconnected.smx
L 03/25/2021 - 23:28:03: [SM] Call stack trace:
L 03/25/2021 - 23:28:03: [SM]   [0] ArrayList.Erase
L 03/25/2021 - 23:28:03: [SM]   [1] Line 58, C:\Users\Sples\Desktop\Scripting\XD\hl_bandisconnected.sp::OnClientPostAdminCheck
L 03/25/2021 - 23:28:38: [SM] Exception reported: Invalid index -1 (count: 5)
L 03/25/2021 - 23:28:38: [SM] Blaming: hl_bandisconnected.smx
L 03/25/2021 - 23:28:38: [SM] Call stack trace:
L 03/25/2021 - 23:28:38: [SM]   [0] ArrayList.Erase
L 03/25/2021 - 23:28:38: [SM]   [1] Line 58, C:\Users\Sples\Desktop\Scripting\XD\hl_bandisconnected.sp::OnClientPostAdminCheck
This one could fix your problem. This is a modified version with an Enum built into the array. This is an untested modified version. If you have any problem with it just hit me up: Entity#8186
Attached Files
File Type: sp Get Plugin or Get Source (hl_bandisconnected.sp - 224 views - 12.2 KB)
File Type: smx hl_bandisconnected.smx (9.4 KB, 94 views)
File Type: zip hl_bandc_fix_new.zip (61.9 KB, 188 views)
__________________
Developer & Scripter from Kitsune Lab
Contact me: Steam | My Plugins | Kitsune Lab

Join to the community on our Discord server.
I stopped public develops. My old/new plugins available ONLY for my Discord community.

Last edited by Sples1; 03-28-2021 at 06:56.
Sples1 is offline