Wing Commander CIC

Hey eddie,

I keep getting

luac: <statement> expected;
last token read: '{' at line 1 in file filename.lua

Two things of note, there is no { in the file and my wordpad is double spacing the whole document. Which program are you using by the way?

________________________________
dofile "flightcommander.lua"

function init()
Mission_setScriptControl(true);
Mission_setAutopilotEnabled(true);
end

function land()
if(Ship_isWithinRange(Player, Relentless, 1000)) then
Mission_doLanding();
end
end

-- call init on startup
init();
Back
Top