Hey leute,
ich hab ein Problem, hab einen Lift gescriptet. Nur das ding kommt net
Lua
local gate = createObject(3095, -3215.6999511719, -703.90002441406, 4.1999998092651, 0, 0, 0)
local state = false -- Unten
function lift ()
if state == false then
moveObject(gate, 9000 ,-3215.6999511719, -703.90002441406, 16)
state = true
-- es ist oben
else
moveObject(gate, 9000 ,-3215.6999511719, -703.90002441406, 4.1999998092651)
state = false
-- es ist unten
end
addCommandHandler('fahr', lift)
Alles anzeigen
Errors:
[2014-01-11 16:17:30] SCRIPT ERROR: Base/gate.lua:20: 'end' expected (to close 'function' at line 4) near '<eof>'
[2014-01-11 16:17:30] ERROR: Loading script failed: Base/gate.lua:20: 'end' expected (to close 'function' at line 4) near '<eof>'