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.