Issue: TSPSArea.walkPath error

  1. issueid=443 06-27-2015 07:51 PM
    SRL Junior Member
    TSPSArea.walkPath error

    Just went to re-start my script and when I tried to run it again i've come across an error:

    Error: Forwarded declaration doesn't match at line 192
    Compiling failed.

    from Camel's Aircraft script

    was working perfectly fine until I stopped the script, found and did a SPS update ( which is what broke it I think ), but error still exists


    Simba Code:
    function TSPSArea.walkPath(path: TPointArray): boolean; override;
    var
      p, lastPos, mmPoint, dCheck: TPoint;
      t, fails, h, l, i, rng: integer;
    begin
      result := false;

      h := high(path);
      l := low(path);

      t := (getSystemTime() + randomRange(15000, 20000));

      repeat
        if (not isLoggedIn()) then
          exit(false);

        p := self.getPlayerPos();

        for i := h downto l do
          if (SPS_PosToMM(path[i], p, mmPoint)) then
          begin
            if (distance(minimap.getCenterPoint(), mmPoint) >= 10) then
            begin
              if (spsMultiMouse) then
                multiClick(mmPoint, 25, 3)
              else
                mouse(mmPoint, MOUSE_LEFT);

              // Waits for the flag to appear for up to 2500
              if (minimap.isFlagPresent(2500 + random(500))) then
              begin
                rng := random(15);
                repeat
                  wait(100 + random(250));
                  WalkingAntiBan();
                until (minimap.getFlagDistance() < (15 + rng)) or (not isLoggedIn()) or (not minimap.isFlagPresent());
              end;
            end;

            t := (getSystemTime() + randomRange(15000, 20000));

            result := (i = h) or (distance(path[i], path[h]) < 10);

            if (result) then
              break(2)
            else
              break();

          end;
        if (p.x = lastPos.x) and (p.y = lastPos.y) then
          inc(fails);

        lastPos := p;

      until (getSystemTime() > t) or (fails > 5);

      print(self.getName()+'.walkPath(): result = '+boolToStr(result));
    end;
Issue Details
Issue Number 443
Project SRL Bugs and Suggestions
Status Not a Bug
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




  1. 06-27-2015 09:40 PM
    Issue Changed by The Mayor
    • Status changed from Unconfirmed to Not a Bug
+ Reply