Results 1 to 3 of 3

Thread: Type Mismatch Error

  1. #1
    Join Date
    Jun 2007
    Posts
    107
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Type Mismatch Error

    hi i keep getting this error in this section of my script

    Procedure Tree;
    Begin
    GameTab (4);
    Repeat
    If FindObjMultiText2(Ix, Iy, 'Tre', 'ree', 'ee', TreeColor, 5) then
    if(FindColorSpiral(x, y, Tree, MSX1, MSY1, MSX2, MSY2))then
    MMouse(x, y, 2, 2);
    wait(500+random(300));
    until(IsUpText(Players[CurrentPlayer].String1));
    Mouse(x, y, 2, 2, true);
    end;
    FindRandoms;
    AntiBanage;
    FindHead;
    FindEnt(TreeColor);
    wait(10000+random(1000));
    Until(invcount = 28);
    drop;
    End;

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

    Default

    I don't know which line it is on, but I'm guessing one of the variables or something you are calling for somewhere are integers, where they are supposed to be strings or something. If you can't figure it out, if you can post the whole script I can probably fix it Or else if you don't want to post the whole script, at least post the variables you declared and tell me what line the error is on.

  3. #3
    Join Date
    Jun 2007
    Posts
    107
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry bout that its if(FindColorSpiral(x, y, Tree, MSX1, MSY1, MSX2, MSY2))then

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
  •