Closed dok441 closed 5 years ago
[ERROR] addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:156: attempt to call method 'HasWeapon' (a nil value)
https://github.com/Alf21/TTT2/issues/355 Also because of this role there is this problem, I understand because of 2 errors.
Yeah, this errors are producing your described problem in #355. But I have honestly no clue, how this can happen. Both errors are quite impossible, because there are checks beforehand. This could maybe be caused by another addon which interferes here. Could you test, if the same behaviour is occuring with only TTT2+ the Roles installed?
The second error and thus the false alives should be fixed now with the newest commit.
So, I added a fallback solution for the first error. Did the Jackal killed someone just in the second the timer was running out? Because that could have produced the error as a superrare edge case, which should be fixed now.
[ERROR] addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:206: attempt to perform arithmetic on local 'timeLeft' (a nil value)