 |

05-03-2010, 03:06 AM
|
|
Newcomer
|
|
Join Date: May 2010
Posts: 1
|
|
What's wrong with this SCAR script?
Here's the script verbatim:
program Cursebot;
var
x, y: Integer;
begin
repeat;
clickmousebox(1035,317,1045,329,true);
if(FindColor(x, y, 3423400,329,3,840,338))then;
ClickMousebox(x, y,x+1,y+1, true);
wait(x+600);
else(clickmousebox(1074,2,1086,16,true), clickmousebox(908,367,1027,385,true));
until(iskeydown('\'));
end.
When attempting to run this script, I get the usual generic SCAR error saying "Failed when compiling
Line 13: [Error] (13:1): Identifier expected in script C:\Program Files\SCAR 3.22\Scripts\cursebot.scar"
Any help would be appreciated, I apologize for my possibly confusing scripting style.
|

05-03-2010, 04:31 AM
|
 |
Hero
|
|
Join Date: Nov 2008
Location: New Zealand
Posts: 5,026
|
|
Re: What's wrong with this SCAR script?
Wrong section, moved it for you.
|

05-09-2010, 01:04 AM
|
|
Newcomer
|
|
Join Date: Apr 2010
Posts: 5
|
|
Re: What's wrong with this SCAR script?
well, the first thing you are missing is good standards
anyways.... your missing a few things
a few begins an end else.....
and you overuse the ";" in your script
here is what i think you want:
Code:
program Cursebot;
var
x, y: integer;
begin
repeat
clickmousebox(1035,317,1045,329,true)
if(FindColor(x, y, 3423400,329,3,840,338))then
begin
ClickMousebox(x, y,x+1,y+1, true)
wait(x+600)
end else
begin
clickmousebox(1074,2,1086,16,true)
clickmousebox(908,367,1027,385,true)
end;
until(iskeydown('\'));
end.
|
 |
|