Target5150 / MoYu_Server_Stupid_Plugins

L4D2 Target Cat Project
GNU General Public License v3.0
80 stars 21 forks source link

l4d_tank_damage_announce error logs #62

Closed nikita1824 closed 6 months ago

nikita1824 commented 6 months ago

Hello, recently I've got this:

L 03/06/2024 - 14:12:08: SourceMod error session started L 03/06/2024 - 14:12:08: Info (map "c1m4_atrium") (file "/home/srcds/l4d2server/left4dead2/addons/sourcemod/logs/errors_20240306.log") L 03/06/2024 - 14:12:08: [SM] Exception reported: Invalid index 1 (count: 1) L 03/06/2024 - 14:12:08: [SM] Blaming: optional/l4d_tank_damage_announce.smx L 03/06/2024 - 14:12:08: [SM] Call stack trace: L 03/06/2024 - 14:12:08: [SM] [0] ArrayList.Get L 03/06/2024 - 14:12:08: [SM] [1] Line 35, l4d_tank_damage_announce\uservector.inc::UserVector.At L 03/06/2024 - 14:12:08: [SM] [2] Line 73, l4d_tank_damage_announce\uservector.inc::UserVector.ForEach L 03/06/2024 - 14:12:08: [SM] [3] Line 611, C:\GitHub\mirum-scripting\plugins\l4d_tank_damage_announce\scripting\l4d_tank_damage_announce.sp::PrintTankInfo L 03/06/2024 - 14:12:08: [SM] [4] Line 223, C:\GitHub\mirum-scripting\plugins\l4d_tank_damage_announce\scripting\l4d_tank_damage_announce.sp::Event_RoundEnd L 03/06/2024 - 14:12:33: Error log file session closed.

I checked the code and correct me if I'm wrong, here we use prefix increment so, in the first cycle it is i == 1

Tested it and it didn't work as I thought, then, I don't understand.