SRL Archive - OSR Help

Syntax Error


Striken

2012-04-30 00:31:25

[Error] (126:14): Syntax error at line 125
Compiling failed.

Line 126
        Case of 'skiller' then

Anyone know how to fix this?

Gucci

2012-04-30 00:35:09

Should be

case 'skiller' of
'True':
begin
Code here
end;

'False':
begin
Code here
end;
end;

Striken

2012-04-30 00:41:00

Thanks. Saved me there, otherwise I would've spent another 10 minutes on it :p
Would a Deposit Box count as bank screen?

Daniel

2012-04-30 01:11:27

You do realise that what you are trying to test for will always result in false (unless you have 'skiller' in the list of things you test for), right?

What you are essentially doing is:

if('skiller' = 'True') then
...
if('skiller' = 'False') then
...

Right?