Coolerthanauto
2009-08-14 11:32:42
Ok guys I am baffled. All of a sudden whenever I try to use SMART it cannot compile smart.scar with this error. It worked earlier, in fact I am running forefeathers in SMART right now.
Line 4: [Error] (8:1): Identifier expected in script I have modified my smart.scar and srl.scar to automatically run smart, but that was weeks ago and it worked fine. Since it is a (slightly) modified version here is the code that it is having problems with.function IsKeyDown(C:Char): Boolean;
begin
Result := SmartIsKeyDown(ord(c));
end;I have tried reinstalling srl and reflection twice and that does not work. In case it matters smart started acting up when I tried to run the below script that I wrote to give tile locations to help me write the tutorial runner I am working on:
// Don't know if this works because I am half asleep right now
//and I never got a chance to compile it
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl/srl/reflection/reflection.scar}
var
me : TME;
begin
me := GetMe;
Repeat
begin
wait (1000);
cleardebug;
writeln ('Current Tile is: ' + IntToStr(me.tile.x) + ' , ' + IntToStr(me.tile.y));
end;
until (false);
end.Thanks in advance