Results 1 to 13 of 13

Thread: Type mismatch error? HELP PLZ

  1. #1
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default Type mismatch error? HELP PLZ

    ok so im trying to add marktime into my powerchopping procedure and just when i think ive figured it out...Line 97: [Error] (17764:32): Type mismatch in script C:\Program Files\SCAR 2.03\Scripts\gerauchertWcer.scar

    sooo ill post the code that its affecting and see what you can make of it

    SCAR Code:
    procedure Chop;

    var WaitTime: Integer;

    begin
      SetRun(True);
      GameTab(4);
      Wait(500 + random(250));
         if(FindColorTolerance(x,y,TreeColor,MSX1,MSY1,MSX2,MSY2,3))then
    begin
      repeat
      MMouse(x,y,2,1);
        if IsUpText('illow') then
          Mouse(x,y,3,3,False)
          ChooseOption(x,y,'hop');
          MarkTime(WaitTime);
        while (MarkTime(WaitTime)< 5000) do //THIS IS LINE 97!!!! <<<<<<-----
    begin
        If(FindEnt(TreeColor)) or (FindFastRandoms)then break;
          case Random(12) of
          2:  MouseBox(MSX1, MSY1,MSX2, MSY2, 3);
          4:  PickUpMouse;
          6:  BoredHuman;
          8:  HoverSkill('Random', False);
          10: RandomRClick;
          12: AlmostLogOut;
          until(InvFull);
        end;
      end;
    end;
    METAL HEAD FOR LIFE!!!

  2. #2
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Change that line to this
    SCAR Code:
    while TimeFromMark(WaitTime)<5000 do


  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mark time starts the time at 0 and starts marking it, TimeFromMark gets the time in milliseconds of the marked time you specify.

  4. #4
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MarkTime start adding, TimeFromMark loads the value of the marked time.

    here

    SCAR Code:
    while (TimeFromMark(WaitTime) < 5000) do

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Icefire908 View Post
    MarkTime start adding, TimeFromMark loads the value of the marked time.

    here

    SCAR Code:
    while (TimeFromMark(WaitTime) < 5000) do
    Maybe if you looked you may have saw that bobarkinator posted the EXACT same thing??

  6. #6
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    no...he put another set of parentheses around it lol


  7. #7
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Is JAD always criticising people...?
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  8. #8
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by SantaClause View Post
    Is JAD always criticising people...?
    I was just kidding around... And usually only on apps.

  9. #9
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    1) He had bad standards (no offense)
    2) He didn't explain it at ALL, that's why I posted.

    Yes I did read every post in this thread, I thought I would just help a little further.

  10. #10
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    lol thanks guys im gonna try it out
    METAL HEAD FOR LIFE!!!

  11. #11
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    ok so...thanks again for helpin me with that error...BUT

    I have a syntax error now...

    Line 107: [Error] (17774:1): Syntax error in script C:\Program Files\SCAR 2.03\Scripts\gerauchertWcer.scar

    Yep no clue what that means ffs....

    Can some1 explain to me what it is and how to fix it in my script please?

    thanks

    SCAR Code:
    procedure Chop;

    var WaitTime: Integer;

    begin
      SetRun(True);
      GameTab(4);
      Wait(500 + random(250));
         if(FindColorTolerance(x,y,TreeColor,MSX1,MSY1,MSX2,MSY2,3))then
    begin
      repeat
      MMouse(x,y,3,3);
        if IsUpText('illow') then
          Mouse(x,y,3,3,False)
          ChooseOption(x,y,'hop');
          MarkTime(WaitTime);
        while (TimeFromMark(WaitTime) < 5000) do
    begin
        If(FindFastRandoms) or (InvFull) then break;
          case Random(12) of
          2:  MouseBox(MSX1, MSY1,MSX2, MSY2, 3);
          4:  PickUpMouse;
          6:  BoredHuman;
          8:  HoverSkill('Random', False);
          10: RandomRClick;
          12: AlmostLogOut;
          until(InvFull); // <<<<<-----LINE 107
        end;
      end;
    end;
    METAL HEAD FOR LIFE!!!

  12. #12
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    You're ending a "repeat" while inside a Case..Of

    Edit:

    Oh, and you don't "end;" the Case..Of

    All Case..Ofs will come to an end; ()

  13. #13
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    so do i need to just get rid of the until or do i need to move it somewhere else?

    if i get rid of the the until it gives me the identifier expected error...

    ahh this is confusing.
    METAL HEAD FOR LIFE!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type Mismatch Error, Help!
    By Ultra in forum OSR Help
    Replies: 4
    Last Post: 01-21-2009, 10:24 PM
  2. ERROR type mismatch
    By shaman in forum OSR Help
    Replies: 5
    Last Post: 12-17-2008, 01:02 AM
  3. Type Mismatch Error?
    By crossback7 in forum OSR Help
    Replies: 2
    Last Post: 06-23-2007, 05:28 PM
  4. Type mismatch error...
    By Hobbit in forum OSR Help
    Replies: 8
    Last Post: 02-13-2007, 04:45 AM

Posting Permissions

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