Results 1 to 4 of 4

Thread: I must be blind^^ Type mismatch

  1. #1
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I must be blind^^ Type mismatch

    SCAR Code:
    program CamalotWcer;
    {.include SRL\SRL.scar}

    Procedure Setup; // 0
    Begin
     HighestAngle;
     MakeCompass('N');
     Setrun(True);
    end;

    Procedure B4nk; // 1

    Var Foundbank, x, y, ax, ay: integer;

    Begin
     Foundbank := 0;
     Repeat
      if FindObjCustom(ax, ay, 'ank', 803673, 7) then
       GetMousepos(x, y);
       Mouse(x, y, 1, 1, false);
       Chooseoption('kly');
       Foundbank := 1;
       writeln('FoundBank');
     Until Foundtree := 1;
    end;

    begin
    SetupSrl;
    Activateclient;
    Setup;
    B4nk;
    end.

    I get this error : Line 18: [Error] (16008:51): Type mismatch in script

    Im going to bed now and i hope someone can figure this out..
    If you wanna help more Pm your msn and i will be forever thankful!



    Edit : So tired i forgot to say what the wrong was :/...

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program CamalotWcer;
    {.include SRL\SRL.scar}

    Procedure Setup; // 0
    Begin
     HighestAngle;
     MakeCompass('N');
     Setrun(True);
    end;

    Procedure B4nk; // 1

    Var Foundbank, x, y, ax, ay: integer;

    Begin
     Foundbank := 0;
     Repeat
      if FindObjCustom(ax, ay, ['ank'], [803673], 7) then  //You need to put in arrays
       GetMousepos(x, y);
       Mouse(x, y, 1, 1, false);
       Chooseoption('kly');
       Foundbank := 1;
       writeln('FoundBank');
     Until Foundtree = 1;  //:= is for assigning a value.
    end;

    begin
    SetupSrl;
    Activateclient;
    Setup;
    B4nk;
    end.
    Tell me if you don't understand what I did.

  3. #3
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You puted [ ]

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    he did that plus he did this
    SCAR Code:
    Until Foundtree = 1;  //:= is for assigning a value.
    you had it so that it assigned the variable not compared the foundtree and 1

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 help
    By 1-DUB in forum OSR Help
    Replies: 5
    Last Post: 05-27-2007, 05:14 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
  •