Results 1 to 4 of 4

Thread: Type missmatch error helpz!

  1. #1
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Type missmatch error helpz!

    I just cant find that damn error in the code, could someone else try and find it for me plz?

    I get a type mismatch error.

    SCAR Code:
    procedure WithrawIngredients;
    begin
      if not (LoggedIn) then Exit;
      if OpenTheBank and not InvFull then
      begin
        if not IngredientsExist('bank') then
        begin
          CloseBank;
          LogOut;
          Exit;
        end else
        begin
       //Withraw Anchovies.
       if FindDTM(Anchovies, x, y, MSX1, MSY1, MSX2, MSY2) then
       Mouse(X, Y, 3, 3, False);
       Wait(200+Random(100));
       if not ChooseOption('14') then
       begin
       ChooseOption('X');
       MarkTime(WH);
       while not InViewEnterAmount and not (TimeFromMark(WH)>7000) do Wait(50+random(50));
       if (TimeFromMark(WH)>7000) then
       begin
       if FindDTM(Anchovies, x, y, MSX1, MSY1, MSX2, MSY2) then
       Mouse(X, Y, 3, 3, False);
       Wait(200+Random(100));
       if not ChooseOption('14') then
        begin
       ChooseOption('X');
       MarkTime(WH);
        while not InViewEnterAmount and not (TimeFromMark(WH)>7000) do Wait(50+random(50));
       if (TimeFromMark(WH)>7000) then
       begin
        CloseBank;
        LogOut;
        Exit;
       end;
       TypeSend('14');
       MarkTime(WH);
       while not FindDTM(X, Y, Anchovies, MIX1, MIY1, MIX2, MIY2) and not (TimeFromMark(WH)>7000) do Wait(100+random(50));
       if (TimeFromMark(WH)>7000) then
       begin
       CloseBank;
       LogOut;
       Exit;
       end;
       end else
       while not FindDTM(X, Y, Anchovies, MIX1, MIY1, MIX2, MIY2) do Wait(100+random(50));
       //Withraw Plain Pizzas.
       if FindDTM(PlainPizza, x, y, MSX1, MSY1, MSX2, MSY2) then
       Mouse(X, Y, 3, 3, False);
       Wait(200+Random(100));
       if not ChooseOption('14') then
       begin
       ChooseOption('X');
       MarkTime(WH);
       while not InViewEnterAmount and not TimeFromMark(WH>7000) do Wait(50+random(50));
       if TimeFromMark(WH>7000) then
       begin
       if FindDTM(PlainPizza, x, y, MSX1, MSY1, MSX2, MSY2) then
       Mouse(X, Y, 3, 3, False);
       Wait(200+Random(100));
       if not ChooseOption('14') then
       begin
       ChooseOption('X');
       MarkTime(WH);
       while not InViewEnterAmount and not (TimeFromMark(WH)>7000) do Wait(50+random(50));
       if TimeFromMark(WH>7000) then
       begin
       CloseBank;
       LogOut;
       Exit;
       end;
       TypeSend('14');
       MarkTime(WH);
       while not FindDTM(X, Y, PlainPizza, MIX1, MIY1, MIX2, MIY2) and not (TimeFromMark(WH)>7000) do Wait(100+random(50));
       if (TimeFromMark(WH)>7000) then
       begin
       CloseBank;
       LogOut;
       Exit;
       end;
       end;
       end else
    while not FindDTM(X, Y, PlainPizza, MIX1, MIY1, MIX2, MIY2) and not (TimeFromMark(WH)>7000) do Wait(100+random(50));
       if (TimeFromMark(WH)>7000) then
       begin
       CloseBank;
       LogOut;
       Exit;
       end;
       end;
     end;
     CloseBank;
    end;

    So can someone fix it for me, and check if there are gonna be errors after that. I will give credits in my script.
    Woot woot.

  2. #2
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    your standards are awful, I'll fix them now just tell me in wich line do you get that error?
    Hi

  3. #3
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  4. #4
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    while not FindDTM(X, Y, Anchovies, MIX1, MIY1, MIX2, MIY2) and not (TimeFromMark(WH)>7000) do Wait(100+random(50));

    You have your variables in the wrong order in FindDTM, you have it correctly before that line so I guess it was a typo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type Missmatch
    By DeSnob in forum OSR Help
    Replies: 2
    Last Post: 12-28-2008, 11:58 PM
  2. HELP Error: Type Mismatch
    By Rouge_Ling in forum OSR Help
    Replies: 12
    Last Post: 05-10-2008, 03:15 PM
  3. need big helpz on 1st script!
    By P1nky in forum OSR Help
    Replies: 5
    Last Post: 10-27-2007, 08:27 PM
  4. Type Mismatch error
    By !bezo! in forum OSR Help
    Replies: 3
    Last Post: 08-26-2007, 03:00 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
  •