Results 1 to 2 of 2

Thread: General/Random Help

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default General/Random Help

    Simba Code:
    function FindWhirlPool(var x, y: Integer): Boolean;
    var
      Points: TPointArray;
      Rx, Ry: Integer;
    begin
      if X then
      begin
        if (Rx > 0) or (Ry > 0) then
        begin
          MMouse(Rx, Ry, 0, 0);
          Wait(1000);
          Result := True;
          ColorToleranceSpeed(1);
          Exit;
        end;
      end;
      Result := False;
    end;

    Pseudo-code ^

    Simba Code:
    If FindWhirlPool(253, 209) Then
    Begin
      Writeln('WhuuurlPooool!');
    End;]

    Variable Expected at line 179

    Why? Line is If FindWhirlPool(253, 209) Then

  2. #2
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Normally the line before it is messed up, and missing ; or such, could you post the real function? Do you need var before the integer's inside the function parameters?

    Check the lines before you call the function, see if any are missing a variable,

    Edit - change it to:

    Simba Code:
    function FindWhirlPool(x, y: Integer): Boolean;

    And it works fine ^^
    Last edited by DannyRS; 02-24-2013 at 10:42 AM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •