Results 1 to 5 of 5

Thread: Mistype error.

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

    Default Mistype error.

    Line 12: [Error] (17347:40): Type mismatch in script



    SCAR Code:
    { //-------------------------------------------------------------\\
      ||                         INSTRUCTIONS                        ||
      ||-------------------------------------------------------------||
      ||        BY:  Kooldude                                        ||
      ||                                                             ||
      ||  1. Axe in first INV slot...                                ||
      ||  2. Drag Crosshair into RS window.                          ||
      ||  3. Hit play and fill out forms.                            ||
      ||  4. AXE HEAD FINDER WILL WORK, Normally :)                  ||
      ||-------------------------------------------------------------||
      ||                          INSTRUCTIONS                       ||
      \\-------------------------------------------------------------//
                                                                       }

    program Powercutter;
    {.include SRL\SRL.SCAR}
    {.include SRL\SRL\Skill\Woodcutting.SCAR}

    const
    TreeColor= '2906184';  //Color of tree


    ////////////////Finding Tree/////////////////

    Procedure FindTree;
    begin;
     if FindColor(x,y,TreeColor,0,0,765,500) then  // <<-- Thats the mistype error
      Wait(2000+random(234))
       Mouse(x,y,10,13,true)
    end;

    begin // Main loop
    repeat
     FindTree; // Calling The Procedure
    until (InventoryFull);
     if (InventoryFull) then
      DropTo(2,28)
      end;
    end.


    ////////////Finding Axe Head Colors/////////////
    Procedure GetAxeColors;  //Credits go to Fourscape for This :) <3
    Begin
     Wait(100)
      MakeCompass('S');
       GameTab(4)
        FindAxeHeadColor;
         MakeCompass('N')
    end;

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    const
    TreeColor= '2906184';  //Color of tree

    Should be

    SCAR Code:
    const
    TreeColor= 2906184;  //Color of tree

  3. #3
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well i wanted the script to be More than just the tree i made it. Can i still do that?

  4. #4
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    I dont understand what you mean.

    FindColor - requires a Color that is a Integer.


    SCAR Code:
    TreeColor= '2906184';  //Color of tree

    Thats a String.

    SCAR Code:
    TreeColor= 2906184;  //Color of tree

    Thats a integer.

  5. #5
    Join Date
    Mar 2007
    Posts
    276
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ty, now i know what u mean

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  2. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10:43 AM
  3. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 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
  •