rj
2013-01-27 19:23:39
So i started using functions in my scripts more to improve them but I was wondering if i could write a function without having to use a Boolean. I currently use:
but I am tired of getting:
It spams up my debug box everytime I compile.
Any tips?
function WriteDebug(): boolean;
begin
ClearDebug;
Writeln('*****************************');
Writeln('Status:' + Status + '');
Writeln('Spice steals:' + IntToStr(Stole_Spice) + '');
Writeln('Ruby steals:' + IntToStr(Stole_Ruby) + '');
Writeln('Runs:' + IntToStr(Runs) + '');
WriteLn('Goal:' + '[' + How_Steal + ']'
+ '|' + IntToStr(StrToInt(How_Steal) - Steals)
+ ' Left to steal| ['
+ IntToStr(Round(Steals * 1.0 / StrToInt(How_Steal) * 100)) + '%]');
Writeln('*****************************');
end;but I am tired of getting:
[Hint] C:\Simba\Scripts\silabtheiv.simba(32:10): Variable 'Result' never used at line 31It spams up my debug box everytime I compile.
Any tips?