SRL Archive - S.M.A.R.T.

Duplicate identifier 'ISKEYDOWN' at line 8 In Smart.SCAR


Xanith

2010-09-21 22:35:18

Any script I try to use that uses Smart(obviously, because it its Smart.SCAR) doesn't compile. I am pretty sure that I have the latest SRL, Reflection, and SIMBA. Any help would greatly be appreciated. :p

Here is the Error Message:
[Error] E:\Program Files\Simba\Includes\SRL/SRL/Misc/Smart.scar(9:10): Duplicate identifier 'ISKEYDOWN' at line 8


and here is line 8 and surrounding lines:
{.loadlib libsmart}
{$endif}

{$ifdef Simba}
function IsKeyDown(C:Byte): Boolean; //<-- Line 8.
begin
Result := SmartIsKeyDown(C);
end;
{$else}
function IsKeyDown(C:Char): Boolean;
begin
Result := SmartIsKeyDown(ord(c));
end;
{$endif}

This is probably something that I am just overlooking.

Wanted

2010-09-21 22:46:51

Works fine for me.

Xanith

2010-09-21 23:19:01

From: IceFire908
Works fine for me.


Hmm, I have no idea then…

TomTuff

2010-09-21 23:21:25

outdated script?

HyperSecret

2010-09-21 23:36:52

From: TomTuff
outdated script?


I would say this. It is probably an older script that loads SMART differently than what we currently do. So the SmartSetup(Ex) is being called twice.