BigEgg17 / Epoch-Antihack-Admin-Tools

Community Developed Antihack / Admin tools for Arma 2 DayZ Epoch
4 stars 8 forks source link

Error when player dies #5

Closed MathijsNL closed 3 years ago

MathijsNL commented 3 years ago

When a player dies a death appears in the log twice: image

Also the RPT shows some errors:

Error in expression < {
            diag_log format['<Epoch-AH>: %1', _log];
        } else {
            if (_opt == 1) then>
  Error position: <_log];
        } else {
            if (_opt == 1) then>
  Error Undefined variable in expression: _log
Error in expression <s, format['%1: %2', call AH_fnc_uptime, _log]];
                    'Death'
                };
            };
            'An>
  Error position: <_log]];
                    'Death'
                };
            };
            'An>
  Error Undefined variable in expression: _log
Error in expression <= ''; local _puid = '';

        if (typeName _log == 'ARRAY') then {_log = toString _>
  Error position: <_log == 'ARRAY') then {_log = toString _>
  Error Undefined variable in expression: _log
Error in expression <!= 'unknown'}) then {
                local _type = _param select 0;

                if (_type == 'kill>
  Error position: <_param select 0;

                if (_type == 'kill>
  Error Undefined variable in expression: _param
Error in expression <lExtension format['Log|%1|%2%3', _type, _log, format[' | Uptime: %1 Map: %2-%3',>
  Error position: <_log, format[' | Uptime: %1 Map: %2-%3',>
  Error Undefined variable in expression: _log

Its not breaking anyhting, but wanted to let you know.

BigEgg17 commented 3 years ago

Thank you! The fix has been added here: https://github.com/BigEgg17/Epoch-Antihack-Admin-Tools/commit/227b5669395135a32f8752b12fa0353fdc216cfb