Log in

View Full Version : [ERROR] With SRL



EVERSCREAMTODIE
11-04-2007, 03:03 PM
I tried to download & install SRL but it DIDN'T worked.
When I'm trying to run script I'm getting the next errors:

Line 26: [Error] (42:1): Duplicate identifier 'UpChars' in script C:\Program Files\SCAR 3.12\includes\srl\srl\core\Globals.scar
& when I try to run other scripts this comes up:
Include file C:\Program Files\SCAR 3.12\includes\Si.scar

What do I have to do? I can't run script and before I could run a few, not all

JuKKa
11-04-2007, 03:08 PM
Run this script:


Program SRLTest;
{.Include SRL/SRL.Scar}

Begin
SetupSRL;
Writeln('You can now auto!');
End.


Tell me what it says in the debug box.

EVERSCREAMTODIE
11-06-2007, 06:28 PM
I runned your script and it said
Successfully compiled
SRL Compiled in 0 msec
You can now auto!
Successfully executed
When I try to run scripts I still get
Include file C:\Program Files\SCAR 3.12\includes\si.txt does not exist.
Failed when compiling
And some other error but this is the one I'm getting the most.

Rikje
11-06-2007, 06:31 PM
Don't use outdated scripts,,, download a new one. that is made for srl 4+ :)

EVERSCREAMTODIE
11-06-2007, 06:51 PM
Outdated? How can u see it?
Btw. I can't download new scripts because I can't visit links yet.. only over about a week. :)

Rikje
11-06-2007, 06:53 PM
i can see its outdated because:
Si.txt does not exist any more.

EVERSCREAMTODIE
11-06-2007, 08:13 PM
oh thanks. I re-installed everything and it works fine...
but with SOME scripts I'm getting this:
[Runtime Error] : divide by Zero in line 42 in script C:\Program Files\SCAR 3.12\includes\SRL/SRL/Core/Mouse.scar

Rikje
11-06-2007, 08:15 PM
make sure there is called:

SetUpSrl; in the main loop.

EVERSCREAMTODIE
11-07-2007, 01:30 PM
make sure there is called:

SetUpSrl; in the main loop.
Thanks for the response, but how do U mean? And what to do to fix it>?

gerauchert
11-07-2007, 02:07 PM
Thanks for the response, but how do U mean? And what to do to fix it>?

towards the bottom of the script there will be a section of coding with a begin and then an end (with a period not a semicolon) like this:


begin
some coding;
end. //<-- notice the period

now he means that there must be the procedure

begin
SetupSRL; //<-- this procedure
end.

within that area of coding somewhere, if its not then you will get that error...

i suggest reading some tutorials on this sort of thing because it is very basic and easy to learn

good luck with scripting ;)

EVERSCREAMTODIE
11-07-2007, 06:05 PM
Thanks dude! I'l check it out!