Results 1 to 6 of 6

Thread: type mismatch help

  1. #1
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default type mismatch help

    ok when ever i complie my script that im working on it gives me this

    failed when compileing
    line 77: [error] (18097:18) : type mismatch in script C:\Program......

    SCAR Code:
    75 procedure WalkCheck;
     76  begin
      77  while(WalkToTree)do
      78  begin
       79  Wait(200);
        80 FindNormalRandoms;
       81  end;
    82 end;

    can some one help me fix this please? thanks in advance

  2. #2
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You probably don't have WalkToTree set up as a boolean function

    make sure it looks like this

    SCAR Code:
    function WalkToTree:boolean;
    begin
    //...code
    result:=true;
    end;

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

    Default

    nope sure dont ty ill try to fix it and post update in a few mins

  4. #4
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sigh ive screwed up..... its a procedure so how would i fix this to work here is the code....

    procedure WalkToTree;
    begin
    MakeCompass('S');
    Wait(100+random(39));
    HighestAngle;
    RadialWalk(MTree, 320, 400, 40, -1, -1);
    Wait(1000+random(30));
    Flag;
    end;

  5. #5
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function WalkToTree:boolean;
    begin
      MakeCompass('S');
      Wait(100+random(39));
      HighestAngle;
      if (RadialWalk(MTree, 320, 400, 40, -1, -1)) then
      begin
        Wait(1000+random(30));
        Flag;
        result:=True;
        break;
      end;
      result:=false;
    end;

  6. #6
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i cant belive i didnt think of that, ty so much!

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
  •