Results 1 to 3 of 3

Thread: type mismatch error?

  1. #1
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default type mismatch error?

    well idc if you call me a noob but i keep getting this mismatch error in this procedure

    SCAR Code:
    Procedure FightMonster;
    Begin
      If FindColorTolerance(x, y, Color1.Text, MSX1, MSY1, MSX2, MSY2, 10) Then
      Begin
      IsUpText('tack')
      Mouse(x, y, 1, 1, False)
      ChooseOption('tack')
      End;
    End;

    help please also what does mismatch mean?

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    A type mismatch error means you're trying to use a variable of the wrong type for another type. In your case, it looks like Color.Text is a string, and you're using it as an Integer. Try: StrToInt(Color.Text).
    :-)

  3. #3
    Join Date
    Dec 2006
    Posts
    2,244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SOLVED thanks mann

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ERROR type mismatch
    By shaman in forum OSR Help
    Replies: 5
    Last Post: 12-17-2008, 01:02 AM
  2. Type Mismatch Error?
    By crossback7 in forum OSR Help
    Replies: 2
    Last Post: 06-23-2007, 05:28 PM
  3. 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
  •