rj
2012-12-28 16:24:49
On my script I want to make a progress report that is supposed to look something like this:
The code im using works all except for the percent part,
How do i properly divine How many potions I have drank (integer) and how many the goal is (string)
note: This part works
But the dividing part does not
********************************
RJJ95 Potion Drinker Version 2.2
Status:Drinking Potions
Potions Drank:500 |500 left to drink| [50%]
*****************************
So far I almost have it down but I keep getting a mismatch[Error] C:\Users\*\Desktop\simba\Password\Scripts\Herblore\PotDrinker.simba(133:52): Type mismatch at line 132
Compiling failed.
The code im using works all except for the percent part,
Writeln('********************************')
Writeln('RJJ95 Potion Drinker Version 2.2')
Writeln('Status:' + status + '');
Writeln('Potions Drank:' + IntToStr(PotsDrank) + ' |'
+ IntToStr(StrToInt(HowManyDrink)-PotsDrank) + ' Left to drink| ['
+ IntToStr(PotsDrank)/(StrToInt(HowManyDrink)) + '%]');
Writeln('********************************') How do i properly divine How many potions I have drank (integer) and how many the goal is (string)
note: This part works
' |'
+ IntToStr(StrToInt(HowManyDrink)-PotsDrank) + ' Left to drink|'But the dividing part does not
['
+ IntToStr(PotsDrank)/(StrToInt(HowManyDrink)) + '%]');
