Results 1 to 5 of 5

Thread: Type Mismatch

  1. #1
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default Type Mismatch

    PHP Code:
    [CODE]procedure WaitWhilstChopping;
    begin
      
    while (ChopTree) do
      
    begin
       AntiBan
    ;
      
    end;
    end;[/CODE
    I have this but when I try to compile my script it says:

    Line 128: [Error] (12907:18): Type mismatch in script

    Ive tried to look at JAD's guide on fixing errors but it wasnt in there.
    Jus' Lurkin'

  2. #2
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure Choptree = a boolean

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  3. #3
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Aaah thank you.

    I have a new problem :/

    PHP Code:
    procedure FindRandoms;
    begin
      FindTalk
    ;
      
    FindNormalRandoms;
      
    FindLamp('Woodcutting');
      
    SolvePinball;
      
    FindEnt(xytrue);
      if (
    FindFightthen
      begin
        MakeCompass
    ('N');
        
    RunTo('N'True);
        
    Wait(7000 random(3000));
        
    RunBack;
      
    end;
    end
    Line 245: [Error] (13024:1): Unknown identifier 'RunBack' in script
    Jus' Lurkin'

  4. #4
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    RunBack doesn't exist anymore so use this as you procedure:
    SCAR Code:
    procedure FindRandoms;
    begin
      FindNormalRandoms;
      FindEnt(x, y, true);
      if (FindFight) then
        RunAway('N', True, 1, 7000 + random(3000))
    end;
    FindNormalRandoms finds every random not skill specific. So you didn't need find talk or solve pinball

  5. #5
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Aaah. I included it in my final script anyway. Cant beat a failsafe.
    Jus' Lurkin'

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
  4. Type mismatch Help
    By Ashur2Good in forum OSR Help
    Replies: 2
    Last Post: 05-23-2007, 03:47 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
  •