SRL Archive - General

Unknown compiler directive???


rscheater13

2009-01-06 19:31:43

I have a problem with getting the error:
[Error]: Unknown compiler directives at 16346:3
I'm not sure why it's giving me this error because this is the code segment that is triggering it:
{$I-}
Reset(t);
{$I+}
IOR := IOResult;
if IOR = 2 then
begin
Rewrite(t);
writeln(f, 'Hi');
end;
else if IOR <> 0 then
Halt;
Please help.

benjaa

2009-01-06 20:14:33

This isn't scar, is it??

Soo much i havent seen before.

All I know here is Writeln has too many variables in it
No idea what Halt is

rscheater13

2009-01-06 20:19:22

This is SCAR, and it is Delphi/Pascal.
:google:
Sorry…felt like using that one.

Edit:
http://pascalprogramming.byethost15.com/lesson9.php
A little above half way down the page it has the section telling about it.

benjaa

2009-01-06 20:20:58

Ok, sorry for trying dude..

A G E N T

2009-01-06 21:29:45

This will not run in SCAR because it's Pascal code. SCAR uses Pascal syntax, but it is not a Pascal compiler.

Freddy1990

2009-01-07 07:19:53

From: rscheater13
This is SCAR, and it is Delphi/Pascal.
:google:
Sorry…felt like using that one.

Edit:
http://pascalprogramming.byethost15.com/lesson9.php
A little above half way down the page it has the section telling about it.


Go read up on SCAR's file writing functions.

rscheater13

2009-01-07 16:19:38

From: A G E N T
This will not run in SCAR because it's Pascal code. SCAR uses Pascal syntax, but it is not a Pascal compiler.


Oh…

From: Freddy1990
Go read up on SCAR's file writing functions.


Alright.
Btw, I'm having a hard time finding the newest version of SCAR. I have 3.15b. I found the thread on your forums for 3.20 Beta 8, but the link is broken.

Edit:
Nevermind, found Beta 9. I was being dumb.