Results 1 to 4 of 4

Thread: Help With Error :(.

  1. #1
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help With Error :(.

    Hello I'm experiencing problems with my script iam trying to make.

    This is my script:
    SCAR Code:
    program AnchoPizza;
    {.Include SRL/SRL.Scar}
    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////ANCHO-PIZZA///////////////////////////////////
    //About this script: This script was made by U L T R A, what this script does///
    //is, it makes anchovie pizza's in a bank.//////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Requirements: 55 Cooking, Plain Pizza's, Anchovie's, Scar Setup Properly./////
    ////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////INSTRUCTIONS///////////////////////////////////
    //1. Position your charecter at varrock east bank with plain pizza's and////////
    //-- anchovies in your bank first tab.//////////////////////////////////////////
    //2. Set Up DeclarePlayers./////////////////////////////////////////////////////
    //3. Hit Run.///////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Why do this?: Well you can earn a profit, and cooking exp. Use the calculator/
    //included in this script to see how much and what you can earn.////////////////
    ////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////NOTES////////////////////////////////////////
    //1. The MTC (Main Control Tower) controls the whole code, the 'calculator'/////
    //-- option requires you to fill in the Calculator const, this option allows////
    //-- you to know how much profit you will make. The 'script' option allows//////
    //-- you to run the Script, this will not include the Calculator option in//////
    //-- any way. The 'both' option however, will let you use both options, this ///
    //-- option is recommended to be used.//////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////

    const//Main Control Tower :P.
    MCT = 'calculator';//'calculator', 'script', 'both'. SEE NOTE 1 (Line 20).

    const//ANCHO-PIZZA CALCULATOR.
    PlainPizzaPrice    = 283;//What price did you buy plain pizza's for?
    AmountOfPlainPizza = 1;//What amount of plain pizza did you buy?

    AnchoviePrice      = 131;//What price did you buy anchovie's for?
    AmountOfAnchovie   = 1;//What amount of anchovie's did you buy?

    AnchoviePizzaPrice = 512;//The price you will try and sell anchovie pizza's for.

    var//DO NOT TOUCH.
    RLN : String;

    procedure AnchoPizzaCalculator;
    begin
     if(MCT = 'calculator')then
      begin
      ClearDebug;
      WriteLn('////////////////////////////////////////////////////////////');
       WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.');
       end else
       if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)<0)then
       WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Negative.');
     if(MCT = 'both')then
     begin
       ClearDebug;
      WriteLn('////////////////////////////////////////////////////////////');
       WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.');
        end else
       WriteLn('Profit:    NEGATIVE SCAR CANT SHOW - ERROR');
       end;
       begin
        repeat
        RLN := ReadLn('Finished Reading Debug? Answer: "yes"');
        Wait(100);
        until(RLN = 'yes');
       if(RLN = 'yes')then RLN := 'randomtexttochangerln:Plol';//:D.
    end;

    begin
    SetUpSRL;
    AnchoPizzaCalculator;
    end.

    The error I'm getting is:
    SCAR Code:
    Line 71: [Error] (15542:4): period ('.') expected in script H:\Program Files\SCAR 3.15\Scripts\AnchoPizza.scar

    I have tried fixing it but that didn't work for me.

    Any help would be very appreciated.

    Thank you.

    -Ultra.
    Woot woot.

  2. #2
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Get propper standaards.

    SCAR Code:
    program AnchoPizza;
    {.Include SRL/SRL.Scar}
    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////ANCHO-PIZZA///////////////////////////////////
    //About this script: This script was made by U L T R A, what this script does///
    //is, it makes anchovie pizza's in a bank.//////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Requirements: 55 Cooking, Plain Pizza's, Anchovie's, Scar Setup Properly./////
    ////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////INSTRUCTIONS///////////////////////////////////
    //1. Position your charecter at varrock east bank with plain pizza's and////////
    //-- anchovies in your bank first tab.//////////////////////////////////////////
    //2. Set Up DeclarePlayers./////////////////////////////////////////////////////
    //3. Hit Run.///////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Why do this?: Well you can earn a profit, and cooking exp. Use the calculator/
    //included in this script to see how much and what you can earn.////////////////
    ////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////NOTES////////////////////////////////////////
    //1. The MTC (Main Control Tower) controls the whole code, the 'calculator'/////
    //-- option requires you to fill in the Calculator const, this option allows////
    //-- you to know how much profit you will make. The 'script' option allows//////
    //-- you to run the Script, this will not include the Calculator option in//////
    //-- any way. The 'both' option however, will let you use both options, this ///
    //-- option is recommended to be used.//////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
     
    const//Main Control Tower :P.
      MCT = 'calculator';//'calculator', 'script', 'both'. SEE NOTE 1 (Line 20).
     
    const//ANCHO-PIZZA CALCULATOR.
      PlainPizzaPrice    = 283;//What price did you buy plain pizza's for?
      AmountOfPlainPizza = 1;//What amount of plain pizza did you buy?
     
      AnchoviePrice      = 131;//What price did you buy anchovie's for?
      AmountOfAnchovie   = 1;//What amount of anchovie's did you buy?
     
      AnchoviePizzaPrice = 512;//The price you will try and sell anchovie pizza's for.
     
    var//DO NOT TOUCH.
      RLN : String;
     
    procedure AnchoPizzaCalculator;
    begin
      if(MCT = 'calculator')then
      begin
        ClearDebug;
        WriteLn('////////////////////////////////////////////////////////////');
        WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.');
      end else
      if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)<0)then
      WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Negative.');
      if(MCT = 'both')then
      begin
        ClearDebug;
        WriteLn('////////////////////////////////////////////////////////////');
        WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.')
        else
        WriteLn('Profit:    NEGATIVE SCAR CANT SHOW - ERROR');
        repeat
          RLN := ReadLn('Finished Reading Debug? Answer: "yes"');
          Wait(100);
        until(RLN = 'yes');
        if(RLN = 'yes')then
        RLN := 'randomtexttochangerln:Plol';//:D.
      end;
    end;
     
    begin
      SetUpSRL;
      AnchoPizzaCalculator;
    end.

    Good luck scripting

  3. #3
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program AnchoPizza;
    {.Include SRL/SRL.Scar}
    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////ANCHO-PIZZA///////////////////////////////////
    //About this script: This script was made by U L T R A, what this script does///
    //is, it makes anchovie pizza's in a bank.//////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Requirements: 55 Cooking, Plain Pizza's, Anchovie's, Scar Setup Properly./////
    ////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////INSTRUCTIONS///////////////////////////////////
    //1. Position your charecter at varrock east bank with plain pizza's and////////
    //-- anchovies in your bank first tab.//////////////////////////////////////////
    //2. Set Up DeclarePlayers./////////////////////////////////////////////////////
    //3. Hit Run.///////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////
    //Why do this?: Well you can earn a profit, and cooking exp. Use the calculator/
    //included in this script to see how much and what you can earn.////////////////
    ////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////NOTES////////////////////////////////////////
    //1. The MTC (Main Control Tower) controls the whole code, the 'calculator'/////
    //-- option requires you to fill in the Calculator const, this option allows////
    //-- you to know how much profit you will make. The 'script' option allows//////
    //-- you to run the Script, this will not include the Calculator option in//////
    //-- any way. The 'both' option however, will let you use both options, this ///
    //-- option is recommended to be used.//////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////

    const//Main Control Tower :P.
    MCT = 'calculator';//'calculator', 'script', 'both'. SEE NOTE 1 (Line 20).

    const//ANCHO-PIZZA CALCULATOR.
    PlainPizzaPrice    = 283;//What price did you buy plain pizza's for?
    AmountOfPlainPizza = 1;//What amount of plain pizza did you buy?

    AnchoviePrice      = 131;//What price did you buy anchovie's for?
    AmountOfAnchovie   = 1;//What amount of anchovie's did you buy?

    AnchoviePizzaPrice = 512;//The price you will try and sell anchovie pizza's for.

    var//DO NOT TOUCH.
    RLN : String;

    procedure AnchoPizzaCalculator;
    begin
     if(MCT = 'calculator')then
      begin
      ClearDebug;
      WriteLn('////////////////////////////////////////////////////////////');
       WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.');
       end else
       WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Negative.');
     if(MCT = 'both')then
     begin
       ClearDebug;
      WriteLn('////////////////////////////////////////////////////////////');
       WriteLn('Amount Of Money Spended: ' + IntToStr(PlainPizzaPrice+AnchoviePrice) + '.');
        if(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)>0)then
        WriteLn('Profit:    ' + IntToStr(AnchoviePizzaPrice-(PlainPizzaPrice+AnchoviePrice)) + ' Positive.');
        end else
       WriteLn('Profit:    NEGATIVE SCAR CANT SHOW - ERROR');
        repeat
        RLN := ReadLn('Finished Reading Debug? Answer: "yes"');
        Wait(100);
        until(RLN = 'yes');
       if(RLN = 'yes')then RLN := 'randomtexttochangerln:Plol';//:D.
    end;


    begin
    SetUpSRL;
    AnchoPizzaCalculator;
    end.

  4. #4
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys!
    Woot woot.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •