SRL Archive - Help

Probably noob question: why doesnt compile this?


lollage22

2010-07-07 16:43:49

program AFK_warner;

{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/SMART.scar}

function NeedToEat:Boolean;

function GettingXP:Boolean;


begin
repeat
wait(1000);
if (NeedToEat or (not GettingXP) ) then
PlaySound('C:\WINDOWS\Media\tada.wav');
until (GetTimeRunning>(120*60*1000));
end.

[Error] C:\Simba\Includes\SRL/SRL/Misc/SMART.scar(9:10): Duplicate identifier 'ISKEYDOWN' at line 8
Compiling failed.

I'm trying simba for the time being. Love it! However, why doesn't this compile? Something with SMART, SetUpSRL, DeclarePlayers?

Thanks in advance! Cheers.

Coh3n

2010-07-07 16:46:21

You have to include SMART before SRL. You'll also need begin/ends in your functions.

{.include SRL/SRL/Misc/SMART.scar}
{.include SRL/SRL.scar}

function NeedToEat:Boolean;
begin
end;

function GettingXP:Boolean;
begin
end;

begin
repeat
wait(1000);
if (NeedToEat or (not GettingXP) ) then
PlaySound('C:\WINDOWS\Media\tada.wav');
until (GetTimeRunning>(120*60*1000));
end.

lollage22

2010-07-07 17:03:51

As I said, noob question. Thanks! :P

Coh3n

2010-07-07 17:04:48

From: lollage22
As I said, noob question. Thanks! :P

Believe me, I've had my share. ;)