Results 1 to 14 of 14

Thread: Common Script Errors? Post them here!

  1. #1
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default Common Script Errors? Post them here!

    Are you getting any errors in certain scripts such as: Period Expected In Script?

    Please search before you post the error in this thread as most confusions are solved.

    These are what are called common errors. If you know you have more than one error, it is better off to post a new thread where people can have a look. If you're confused about what to do with some functions (e.g RadialWalk), post it in a new thread.

    But there are some rules you must follow:
    • If you're posting about and error from a pay script, then do not post it here. Instead ask for customer support from the author of the script.
    • If the script you're wanting request with is on this forums and the thread is active, post in there for quicker support.
    • If the script is located on this forums, post a link to it. If you're making a new script and want support, post the full script here.
    • Do not abuse this thread, if you left your username and password in there and your account was stolen then it was your fault from leaving it in there.


    Well, those are all the rules. Continue on with posting errors.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  2. #2
    Join Date
    Aug 2007
    Location
    PA
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Include file C:\Program Files\SCAR 3.12\includes\Si.scar does not exist.
    i keep getting this kind of problem for like every script i run, do you happen to know why?

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

    Default

    Because your running old scripts

    Edit:100th post!

  4. #4
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Cameron4811 View Post
    Include file C:\Program Files\SCAR 3.12\includes\Si.scar does not exist.
    i keep getting this kind of problem for like every script i run, do you happen to know why?
    Si.scar is an old include created a long time ago when SRL was in it's early stages. If you're finding scripts from other websites than Sythe.org, MoparIsTheBest.com and SRL-Forums.com then i do not recommend using any of them unless they have a line in their script which contains {.include SRL\SRL.scar}. If no line in the script then i recommend throwing the script away.

    Also, if the scripts do not say that they're SRL 4 compatible, then there is no point in keeping them.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  5. #5
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well alot of mine freeze about a minute in dont no why?
    finished auto talker (bad) 100%

    ok im gonna to a varrok tea stealer if any1 wants to help me pm me anyways its 1 %

  6. #6
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by olivebj View Post
    well alot of mine freeze about a minute in dont no why?
    If you're using a slow computer and you have included SRL into your script then it may take a while to load depending on how fast your computer RAM speed is. Since SRL has a lot of files and folders, it will take SCAR quite a while to search for them all then it will load them all into it's memory until a new script has ran or the script has executed.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  7. #7
    Join Date
    Dec 2007
    Posts
    67
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 636: [Error] (15725:18): colon (':') expected in script

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

    Default

    Showing the script would be nice

  9. #9
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 52: [Error] (13055:1): colon (':') expected in script

    SCAR Code:
    {
        #####    ######  ####### ##    ##  #####
       ##   ##   ######  ####### ##    ##  ##  ##   |
       ##        ##        ###   ##    ##  ##  ##   |
        ####     #####     ###   ##    ##  #####    |
            ##   ##        ###   ##    ##  ##       |
       ##   ##   ######    ###   ########  ##      |/
        #####    ######    ###    ######   ## Is Below!

        CREDITS:
         Thanks to Kaitnieks for making scar!!!
         Thanks to the person who made SRL >_>
         Oh if you use this code in any of your scar programs,
         Please give me credit =]

       /**Settings/Requirements**
       /** 1. SRL 3.70 installed
       /** 2. RS V-Bright
       /** 3. Dont worry about facing north >_>
       /** 4. Equip Axe!!!
       /** 5. Have nothing but willows in your first inven slot.
       /*************************
       1. Drag the Crosshair symbol onto RS.
       2. Start logged in or logged out.
       3. Modify Lines 22-31.
       4. Press the green arrow or hold CTRL+ALT+R
       5. HAVE FUN!

       NOTE** This is still in testing, it works fine it just takes a while to get the willows.
    }

    program MrGibbletsWillowBanker;
    {.include srl/srl.scar}
    {.include srl/srl/skill/woodcutting.scar}
    {.include srl/srl/skill/fighting.scar}

    const
    treecolor1 = 4550760;
    treecolor2 = 3838080;
    treecolor3 = 926752;
    BCHM = 5299181; //Bank Symbol Color
    BCDB1 = 5658720; // Bank Booth Color 1
    BCDB2 = 5994116; // Bank Booth Color 2
    WLC = 4221042; // Willow Log color in inven
    Buckle = 2269660; //Buckle color for inven
    BuckleSel = 2829182; //Selected RED for the buckle (dont change this)

    var x,y:integer;
    var cutting:Boolean;
    var wx,wy:Integer;
    var MouseFindFlag

    function BankOpen:Boolean;
    // We use this because BankScreen Dosent work...
    var BankTextX,BankTextY:Integer;
    begin
         if(findcolor(BankTextX,BankTextY,2070783,178,29,337,51)) then
         begin
              Result:=true;
         end else
         begin
              Result:=false;
         end;
    end;

    function InvenOpen:Boolean;
    var InvenCheckX,InvenCheckY:Integer;
    begin
         if(findcolor(InvenCheckX,InvenCheckY,BuckleSel,626,167,700,200)) then
         begin
              Result := true;
         end else
         begin
              Result := false;
         end;
    end;

    procedure OpenInven;
    begin
         if(not InvenOpen) then
         begin
              if(findcolor(x,y,Buckle,626,167,700,200)) then
              begin
                   Mouse(x,y,1,1,true);
              end;
         end;
    end;

    Procedure DeclarePlayers;
    Begin

         HowManyPlayers := 1;
         NumberOfPlayers(HowManyPlayers);
         CurrentPlayer:= 0;

         Players[0].Name     := 'headcase25';
         Players[0].Pass     := 'killer';
         Players[0].Nick     := 'ead';     //3 Lowercase Letters of your username
         Players[0].Active   := True;

    End;

    procedure pie;
    begin
      MouseFindFlag(648 + 40,83,5,5);
      SetRun(true);
      OpenInven;
      OutFight;
      MouseFindFlag(648 - 40,83,5,5);
      Flag;
      Wait(100 + Random(100));
    end;

    procedure GoBackToTrees;
    begin
         MouseFindFlag(621,111,5,5);
         Flag;
         ChopWillows;
    end;

    procedure Bank;
    begin
         if(findcolortolerance(x,y,BCHM,595,7,707,140,5)) then
         begin
             Mouse(x,y,4,4,true);
             writeln('Found Bank, Clicking.');
             Flag;
             writeln('In Bank, looking for booth.');
         end;
         if(findcolortolerance(x,y,BCDB1,4,4,536,444,1) or
         findcolortolerance(x,y,BCDB2,4,4,536,444,1) and not BankOpen) then
         begin
              MMouse(x,y,2,2);
              if(isuptextmulti('se Bank','e Bank','Use Bank')) then
              begin
                 writeln('Found Booth, opening bank');
                 Mouse(x,y,2,2,false);
                 ChooseOption(x,y,'quickly');
                 Flag;
                 repeat
                       wait(100);
                       writeln('Waiting for bank to open...');
                 until(BankOpen);

                 if(BankOpen) then
                 begin
                    writeln('In Bank! Depositing');
                    if(findcolor(x,y,WLC,560,210,735,457) and BankOpen) then
                    begin
                         Mouse(x,y,1,1,false);
                         ChooseOption(x,y,'All');
                         writeln('Deposited!');
                         GoBackToTrees;
                    end;
                 end;

              end else
              begin
                   Mouse((515/2)+20,338/2,1,1,true);
                   Bank;
              end;
         end;
    end;

    procedure ChopWillows;
    begin
       if(not InFight) then
       begin
         if(not ExistsItem(28)) then
         begin
             if(findcolortolerance(x,y,treecolor1,4,4,516,338,5) or
                findcolortolerance(x,y,treecolor2,4,4,516,338,5) or
                findcolortolerance(x,y,treecolor3,4,4,516,338,5)) then
             begin
                MMouse(x,y,4,4);
                wx:=x;
                wy:=y;
                if(IsUpText('Will') or IsUpText('llow') or IsUpText('wn Wi')) then
                begin
                    if(cutting=false) then
                    begin
                         clickmouse(x,y,true);
                         if(IsChatBlackTextAnyLine('You swing your axe at the tree.')) then
                         begin
                              cutting:=true;
                              writeln('Found Text...');
                         end;
                         wait(15000);
                    end else
                    begin
                         clickmouse(x,y,true);
                         wait(45000);
                    end;
                end;
             end;
          end else
          begin
               Bank;
               writeln('ITEM FOUND AT SLOT 28!!');
               DragItem(2,25);
          end;
       end else
       begin
          RunAway;
       end;

       if((cutting=true) and (not findcolortolerance(x,y,treecolor1,wx,wy,wx,wy,5)
       or findcolortolerance(x,y,treecolor2,wx,wy,wx,wy,5) or
          findcolortolerance(x,y,treecolor3,wx,wy,wx,wy,5))) then
          begin
          cutting:=false;
          writeln('turned off cutting');
          end;
    end;

    procedure Run;
    begin
         if(LoggedIn) then
         begin
              MakeCompass('N');
              wait(50+random(50));
              HighestAngle;
              repeat
              ChopWillows;
              until(false);
         end;
    end;

    procedure Start;
    begin
         SetupSRL;
         Mouse(0,0,4,4,true);
         DeclarePlayers;
         LoginPlayer;
    end;


    begin
         Start;
         Run;
         RunAway;
    end.
    lasers ftw!
    http://img87.imageshack.us/img87/610...zorzaw7.th.gif
    for every script that is leached, copied, or stolen- one of santa's elves die

  10. #10
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    pieman24, you gravedigged the thread, the thread is about 3 months old.

    That script is outdated, it says its for SRL 3.7, even though being outdated wouldn't cause the problem in line 52, but it would cause a lot more problems and it wouldn't work because rs2 has been updated a lot since SRL 3.7. Making the script useless pretty much.

  11. #11
    Join Date
    Feb 2008
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh. i didnt realise that the thread was started in december i'll try to check these things out in future before posting
    lasers ftw!
    http://img87.imageshack.us/img87/610...zorzaw7.th.gif
    for every script that is leached, copied, or stolen- one of santa's elves die

  12. #12
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Iron man View Post
    pieman24, you gravedigged the thread, the thread is about 3 months old.

    That script is outdated, it says its for SRL 3.7, even though being outdated wouldn't cause the problem in line 52, but it would cause a lot more problems and it wouldn't work because rs2 has been updated a lot since SRL 3.7. Making the script useless pretty much.
    You can grave-dig a helpful thread???

    Oops, i think i just did

    Present some scripting errors here, i'm back to answering these questions (after i forgot about this thread )
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  13. #13
    Join Date
    Oct 2008
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Failed when compiling
    Line 88: [Error] (16196:14): Syntax error in script C:\Program Files (x86)\SCAR 3.15\includes\SRL/SRL.scar
    Line 88: [Error] (16196:14): Syntax error in script C:\Program Files (x86)\SCAR 3.15\includes\SRL/SRL.scar

    grr i get it every time i try and run a script i have done everything im ment to do but it keeps comming up with that.

  14. #14
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    rdl srl
    delete your srl folder and just rdl it
    edit whoops i'm helping to gravedig


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. More errors in script please help
    By xaviar in forum OSR Help
    Replies: 4
    Last Post: 07-03-2008, 03:34 AM
  2. First Script, Several Errors
    By Jackrawl in forum OSR Help
    Replies: 8
    Last Post: 09-11-2007, 10:03 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
  •