• My function is spamming errors.
    3 replies, posted
[code]function SWEP:Think() local tr = util.TraceLine(trace) if tr.HitNonWorld then if string.find(tr.Entity:GetClass(), "prop_ragdoll") then local Bone = tr.Entity:LookupBone("ValveBiped.Bip01_Head1") self.HeadPos = tr.Entity:GetBonePosition( Bone ) local Scale = 0.01 end end end[/code] What does it spam: [code]got niltable expected, got niltable expected, got niltable expected, got niltable expected, got niltable expected, got niltable expected, got niltable expected, got niltable expected, got niltable expected[/code]
[code]local tr = util.TraceLine(trace)[/code] trace is nil
It still spams the same error.
[QUOTE=I'm great;43210152]It still spams the same error.[/QUOTE] He didn't provide you a fix, he told you what the problem was so you can fix it yourself and actually learn something instead of begging others to do it.
Sorry, you need to Log In to post a reply to this thread.