So at the moment I'm attempting to learn how to script in simba and I'm running into a few problems with my scripts, I'm not really sure about everything I'm doing so I figured I'd ask the community since you all seem pretty helpful.
What I'm attempting to do with my script at the moment is make it find logs in the bank using a DTM but am getting an error with
Saying X is an unknown identifier, though in YoHoJo's videos it worked perfectly.Code:If FindDTM(Log, X, Y, MSX1, MSY1, MSX2, MSY2);
Full script is, if I'm doing something wrong earlier on please let me know.
Code:program dtmtest; {$i srl/srl.simba} var Log: Integer; begin SetupSRL; Log := DTMFromString('mlwAAAHicY2dgYJBkZGBQAWJuIJYGYg0g5gdieSDmAmIOIBYCYjEgFgRiTiBmAOKSED0IAwsWYcANsOuAYCgAAO5kAjo='); If FindDTM(Log, X, Y, MSX1, MSY1, MSX2, MSY2); Begin WriteIn('Found Logs'); MMouse(x, y, 7, 7); If IsUpText('Logs') Then Mouse(x, y, 0, 0, True); End; FreeDTM(Log); end.


Reply With Quote






