Results 1 to 4 of 4

Thread: Type Mismatch...

  1. #1
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Type Mismatch...

    Hi,

    I'm getting a type mismatch here...


    SCAR Code:
    function ReturnFSpotFS(x, y: integer): boolean;
    var Testx, Testy, Boundx, Boundy: integer;
    begin
      if FindSymbol(Testx, Testy, 'fish') then
      begin
        Boundx := MMCX;
        Boundy := MMCY;
        if not Boundx - Testx < 21 or Boundy - Testy < 21 then //this line
        begin
          x := Testx;
          y := Testy;
          Result := True;
          Exit;
        end else Exit;
      end;
    end;

    Please help!


    Thanks,
    Cut em2 it
    Formerly known as Cut em2 it

  2. #2
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try making boundx - testx and boundy - testy variables =/ idk...

  3. #3
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    They are variables...

    Cut em2 it
    Formerly known as Cut em2 it

  4. #4
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Add brackets

    Before:
    SCAR Code:
    if not Boundx - Testx < 21 or Boundy - Testy < 21 then //this line

    After:
    SCAR Code:
    if not ((Boundx - Testx) < 21) or ((Boundy - Testy) < 21) then //this line
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type mismatch
    By batnas in forum OSR Help
    Replies: 3
    Last Post: 04-24-2008, 06:48 PM
  2. Type Mismatch..
    By Nava2 in forum OSR Help
    Replies: 1
    Last Post: 04-23-2008, 07:44 PM
  3. Type mismatch Help
    By Ashur2Good in forum OSR Help
    Replies: 2
    Last Post: 05-23-2007, 03:47 PM

Posting Permissions

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