Zerghunter3000
2009-10-09 22:41:55
I keep getting this error when i try to make a script, i keep hitting myself in the head trying to figure out wut it means, can anyone help? :duh:
Failed when compiling
Line 3: [Error] (3:28): Identifier expected in script
Failed when compiling
Line 3: [Error] (3:1): Identifier expected in script
Failed when compiling
Line 3: [Error] (3:1): Identifier expected in script
barbarianl3t
2009-10-09 22:59:31
Could you try to post the code you have written. More likely then not you're error is because you forgot to place a semi-colon ";" after the line of code you wrote.
Nava2
2009-10-09 23:04:58
Identifiers are begin and end. Make sure you have them placed correctly.
Remember, we can help a lot more if you post the script.
Zerghunter3000
2009-10-09 23:32:32
Program WoodCutting;
{.include Si.scar}
Var x,y : Integer;
Procedure CutOak;
Begin
Findcolor(x,y,2451804,5,5,515,340)
Mouse(x,y,1,1,true)
Wait(5000)
end;
End
Nava2
2009-10-09 23:33:35
You need to create a main loop so:
begin
CutOak;
end.
Zerghunter3000
2009-10-09 23:45:31
Okay, hand oh and it says
Include file C:\Program Files\SCAR 3.12\includes\Si.scar does not exist.
Failed when compiling
Where do I download Si.scar or get it?
Tniffoc
2009-10-09 23:51:39
I don't know why you're trying to include "Si.scar". SRL is the only include left. May I suggest that you read a few tutorials on SRL specifically?
senrath
2009-10-09 23:51:55
Si.scar is old and outdated. Don't use it.
Zerghunter3000
2009-10-09 23:53:54
Well, what should I use? Because Si.scar is the only one I know of since I'm new to scripting. Thx.
Nava2
2009-10-09 23:55:38
You need to install SRL & at least 3.15b for SCAR.
Zerghunter3000
2009-10-10 00:00:23
OH! I am using SCAR3.12! where is SRL and 3.15? and also, what might I put to replace:
{.include Si.scar}
TomTuff
2009-10-11 14:45:52
umm… this is the SRL forums… try going to tutorial island? (literally, tutorial forum at the bottom of the main forum page) there should be a guide (look for coh3n's) to set up SCAR (newest edition, 3.22 beta) and SRL (latest dev rev)