Results 1 to 3 of 3

Thread: Type mismatch Help

  1. #1
    Join Date
    Mar 2007
    Posts
    937
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Type mismatch Help

    Ok, i keep getting this error, can anyone tell me how to fix it please.

    SCAR Code:
    procedure Healing;
    begin
    repeat
    GameTab(2);
    if (HpPercent <= HpAmount) then
        begin
          WriteLn('You have low HP :( Time to heal ;D');
          Wait(500+Random(100));
            WriteLn('Looking for a Monk to BS Muwhahaha');
    if ( FindMonk ) then//This is the error( I think :S), not the error line thru.
    begin//This is the error line
       Mouse(x,y,0,0,False);
      ChooseOption(x,y,'lk-');
       ClickToContinue;
       ChooseOptionEx('heal');
       TalkToRand;
        Wait(500+Random(100));
         DoAntiRandoms;
         HealTime:= HealTime + 1;
        until(HpPercent >= HpAmount);
           end else
           MonkSaftey;
            end;
    end;

    Please help ;/


    -Ashur
    Exam period.

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Type Mismatch

    This happens when you use the wrong variable type in the input for a procedure or function. Using an extended variable as the x or y variable in MoveMouse, for example, causes this error. Simply make the variable the correct type of variable, which would be an integer with MoveMouse.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Apr 2007
    Posts
    186
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Show us the FindMonk function too.

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 Raskolnikov in forum OSR Help
    Replies: 3
    Last Post: 10-18-2008, 05:56 AM
  2. Type mismatch
    By batnas in forum OSR Help
    Replies: 3
    Last Post: 04-24-2008, 06:48 PM
  3. Type Mismatch..
    By Nava2 in forum OSR Help
    Replies: 1
    Last Post: 04-23-2008, 07:44 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
  •