0
키에 명령을 바인딩하면 "Unknown command: TestJump
"이 계속 표시됩니다. 내가하는 일은 다음과 같습니다. "lua_openscript_cl
TestJump"명령을 실행 한 다음 "Bind e"TestJump "를 실행합니다.하지만 그 명령이 알려지지 않은 것을 알기 시작합니다."뭔가 스크립트를 작성하고 있습니다. 내가 명령을 실행 오류 "는 아래에 나에게 오류를 제공 할 때 그 또한의 스크립트를 엽니 다'ADD'(nil 값) 필드를 호출하려고 시도합니다.
오류 :.
[ERROR] lua/testjump.lua:11: attempt to call field 'ADD' (a nil value) 1. unknown - lua/testjump.lua:11
코드 :
function TestJump()
timer.simple(.7,jump) -- Jumps --
timer.simple(.7, function() RunConsoleCommand("+jump") end)
timer.simple(.72, function() RunConsoleCommand("-Jump") end)
end
-- Jumps --
function jump() -- Not sure if I'm even supposed to do this --
LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,10,0))
end
--^not sure what I am supposed to do with the EyeAngle --
concommand.ADD("Test",TestJump) -- Where I think the error is --