Kami wrote:Do npcs kill other npcs on your server? Player index should only go to 64 I think. 291 should be one of the other server entities. I updated the plugin with another approach, hopefuly this will fix your error.
Ok ill check it out, ty and the npc dont hurt each other ( would be kool if they did) and the other script that uses the npc kill made it so the npc dont kill the bots. UPDATED, Yes no more errors, thank you very much.

I got it again, i dont know why either, you just fixed it but 6 hours later a error came up again, im sorry that it keeps happing, i know you fixed it, so i have no idea, but heres the error again.
Code: Select all
2020-12-27 00:51:44 - sp - EXCEPTION
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\plugins\headshot\headshot.py", line 93, in _pre_take_damage
_damage_weapons[victim.userid] = Player(entity.index).active_weapon.classname
AttributeError: 'NoneType' object has no attribute 'classname'
2020-12-27 00:54:45 - sp - EXCEPTION
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\events\listener.py", line 92, in fire_game_event
callback(game_event)
File "..\addons\source-python\plugins\scoreboard\scoreboard.py", line 421, in player_disconnect
player_entity = Player(index_from_userid(userid))
ValueError: Conversion from "Userid" (7) to "Index" failed.
here is where the headshot scripts is
viewtopic.php?f=37&t=1372&start=40 by satoon101 » Tue May 28, 2019 11:22 pm, also if you maybe can fix that one also. you are good at what you do, been close to a year without any trouble on the headshot deal. Stay kool my freinds and have a great new year.
