Log in

View Full Version : Shouldnt be hard to answer



lordworkman
03-05-2012, 08:26 PM
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
03-05-2012, 08:28 PM
Search that thread, someone posted a fix.

humeruzz
03-05-2012, 08:28 PM
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
03-05-2012, 08:33 PM
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;