ULX

Author Topic: ULX - Murder Gamemode error  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Offline notownz

  • Newbie
  • *
  • Posts: 7
  • Karma: -4
ULX - Murder Gamemode error
« on: October 15, 2014, 05:06:27 PM »
This error is generate when the round is over and murderer or bystander with gun shoots the dead bystander bodies/ragdoll the error then is generate in the server console.

I have the latest ULIX 3.61 and Ulib, gamemode is Murder v19.

Code: [Select]
[ERROR] addons/ulx/lua/ulx/log.lua:219: Tried to use a NULL entity!
  1. GetClass - [C]:-1
   2. fn - addons/ulx/lua/ulx/log.lua:219
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

log.lua (213-226)
Code: [Select]
local function playerDeath( victim, weapon, killer )
if logEvents:GetBool() then
if not killer:IsPlayer() then
ulx.logString( string.format( "%s was killed by %s", victim:Nick(), killer:GetClass() ) )
else
if victim ~= killer then
ulx.logString( string.format( "%s killed %s using %s", killer:Nick(), victim:Nick(), weapon:GetClass() ) )
else
ulx.logString( string.format( "%s suicided!", victim:Nick() ) )
end
end
end
end
hook.Add( "PlayerDeath", "ULXLogDeath", playerDeath, -20 )

hook.lua (174-201)
Code: [Select]
if HookTable then
local a, b, c, d, e, f
for k=1, #HookTable do
v = HookTable[ k ]
if not v then
-- Nothing
else
-- Call hook function
if isstring( v.name ) then
a, b, c, d, e, f = v.fn( ... )
else
-- Assume it is an entity
if IsValid( v.name ) then
a, b, c, d, e, f = v.fn( v.name, ... )
else
table.insert( resort, name )
end
end

if a ~= nil then
-- Allow hooks to override return values if it's within the limits (-20 and 20 are read only)
if v.priority > -20 and v.priority < 20 then
return a, b, c, d, e, f
end
end
end
end
end



Any help would be apperiacted.

Thank You
notownz
« Last Edit: October 15, 2014, 05:24:01 PM by notownz »