thevisad / DayZ-Private-master

Reality DayZ - replaced Bliss for DayZ servers
GNU General Public License v2.0
44 stars 84 forks source link

Update server_playerDied.sqf #261

Closed seaweeduk closed 11 years ago

seaweeduk commented 11 years ago

I've been trying to debug an issue with my kill messages recently, this wasn't the cause of the problem but seems to me this change needs making too?

_victim is not declared until line 11

The errors I get look like this, which was what lead me to look at that code initially...

14:43:03 Error in expression <ect 3; _playerName = name _newObject;

_victim removeAllEventHandlers "MPHit";

14:43:03 Error position: <_victim removeAllEventHandlers "MPHit";

14:43:03 Error Undefined variable in expression: _victim 14:43:03 File z\addons\dayz_server\compile\server_playerDied.sqf, line 11

thevisad commented 11 years ago

thank you for identifying that sir

seaweeduk commented 11 years ago

sarge did all the work http://opendayz.net/threads/error-with-death-messages.10570/#post-47234 appologies for not submitting it sooner, I only noticed the problem was still there when a server mod broke my death messages again.