Try:
function createTheGate ()
myGate = createObject ( 18483, -783.20001220703, 2597.1999511719, 104.09999847412, 0, 0, 83.984985351563 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ()
moveObject ( myGate, 500, -781.20001220703, 2624.8000488281, 104.09999847412, 0, 0, 0 )
myEffect = createObject ( 2780, -783.90002441406, 2660.5, 104.09999847412, 0, 0, 0 )
setTimer ( function() end, 3000, 0 )
destroyElement (myEffect)
end
addCommandHandler("opengate",openMyGate)
function movingMyGateBack ()
moveObject ( myGate, 500, -783.20001220703, 2597.1999511719, 104.09999847412, 0, 0, 0 )
end
addCommandHandler("closegate",movingMyGateBack)
You're missing an argument at line 7, check it out.