hey ok, i was trying to create a TPA and i keep getting this error
SCAR Code:
Failed when compiling
Line 13: [Error] (13:49): Unknown identifier 'MSX1' in script
this is my TPA:
SCAR Code:
program New;
{.include SRL\SRL.Scar} //inlcude lol
Function FindWhatever: Boolean; //lol lag(function name)
var
Wx, Wy: integer; //same as x/y but im using W as classification
TPA: TpointArray; //Declares TPA as a TPointArray must be TPA!!
ATPA: T2DPointArray; //contains teh TPA after splitting it.
I: integer; //sett the point length using this.
begin
FindColorsSpiralTolerance(Wx, Wy, TPA, 1523254, MSX1, MSY1, MSX2, MSY2, 16); //i got that error last time i tried to do a TPA tutorial lol
begin
ATPA := SplitTPA(TPA, 30); //Contains the TPA after splitting , it splits the TPA into 30 pixels no
For I :=0 To high(ATPA) Do //Just set the array lenght (amount of colors usually)
if MiddleTPAEx(ATPA[i], Wx, Wy) then
MMouse(Wx, Wy, 3, 3);
if IsUpText('ew') then
begin
Mouse(Wx, Wy, 2, 2, true);
Result := true; //do you get this? umm, the result = true makes FindWhatever = true yea u have to do that always in :Boolean
end else
Result := false; //therefore making it false
Exit; //exit tpa i dont think this mattersers Go to SRL forums>> OKScripting help
end;
end;
begin
SetupSRL;
ActivateClient;
Wait(300);
FindWhatever;
end.