SRL Archive - Help

Shouldnt be hard to answer


lordworkman

2012-03-05 15:26:24

Been running the butterfly catcher script and get the following error:

340 CtrlPoints := sps_WindPath(M.x, M.y, P.X, P.Y, 22.5, 12.5, 40, 20);


turns orange , this might be so easy to fix that i look like some sort of retard, that might be, but i would really appreciate it if i could get help with this

thanks

Ashaman88

2012-03-05 15:28:47

Search that thread, someone posted a fix.

humeruzz

2012-03-05 15:28:59

can i see a like 5-10 lines before and i might be able to help :D im a new comer but ill try

~humeruzz

lordworkman

2012-03-05 15:33:04

function sps_WindWalkAndCheck(Func : String ;Args : TVariantArray;T: TPoint): Boolean;
var
I, Tries: Integer;
M, P: TPoint;
CTRLPoints: TPointArray;
begin
P := T;
repeat
M := SPS_GetMyPos;
if Length(CtrlPoints)=0 then
CtrlPoints := sps_WindPath(M.x, M.y, P.X, P.Y, 22.5, 12.5, 40, 20);
writeln ('Try no. :'+inttostr(Tries));
Inc(Tries);
if(Tries > 20)then
Exit;