Log in

View Full Version : Where Is?



Hey321
12-15-2006, 11:28 PM
Where is the Trade Screen procedure? In AntiRandoms? I'm wondering cuz i want to remake it into a duel screen one.

function Duel: Boolean;
begin
If (findcolorTolerance(x, y, 12926 , MCX1, MCY1, MCX2, MCY2, 25)) Then
Begin
MMouse(x, y, 3, 3);
Mouse(x,y,3,3, True);
Result := True
End;
else//<---- That's line 17
Begin
WriteLn('OMFG It''s False');
Result := False;
End;
End;

Whats wrong with that?

Giving me this:

Line 17: [Error] (15515:1): Identifier expected in script C:\Program Files\SCAR 2.03\Scripts\Duler.scar

Rick
12-17-2006, 04:03 PM
function Duel: Boolean;
begin
If (findcolorTolerance(x, y, 12926 , MCX1, MCY1, MCX2, MCY2, 25)) Then
Begin
MMouse(x, y, 3, 3);
Mouse(x,y,3,3, True);
Result := True
End; //<---you dont need a ; . Its causing the errors
else//<---- That's line 17
Begin
WriteLn('OMFG It''s False');
Result := False;
End;
End;

trade screen procedure is in misc-->trade.scar

hope that helped