Line 20: [Error] (19817:1): Identifier expected in script
Here is thw whole script, i need some help with the error.
Code:program New; {.include SRL/SRL.scar} function ClickMeat: Boolean; var meatBMP, x, y, i : Integer; begin meatBMP := BitmapFromString(9, 7, 'beNqrqZkiyUtFtHr+fFxSC6d' + 'O2bZmNRChia9bvGhGTw9WqaUzpk9sbYVIIctuXLZs3sSJ7QCneECD' + ''); GameTab(tab_Inv) For i := 0 to 15 Do if(FindBitmapToleranceIn(meatBMP, x, y,MIX1, MIY1, MIX2, MIY2, i))then begin MMouse(x,y,4,4); if(IsUpText('aw meat'))then GetMousePos(x, y); Mouse(x,y,0,0,false); Result:= True break; Else //this is the line with the error writeln('could not find the correct uptext') Else writeln('Could not find the meat bitmap') end; end; begin SetupSRL; ActivateCLient; if ClickMeat then Writeln('we have clicked the raw meat') else Writeln('we have not clicked the raw meat') end.


Reply With Quote




.



