JN13
2012-03-12 23:36:18
[Warning] (1:1): "and True" is not needed at line 0
I know it must be in some tut somewhere that I can't find… but what does this mean :duh:
also!
how do I change this to make it save in unique reports? can I tack the time on the end to make it unique, not overwrite the previous one? (it reports if the script terminates for crashsmart)
procedure WriteReportToFile;
var
theFile: Integer;
thePath: string; //Ty Coh3n
begin
thePath := AppPath + 'Scripts\ABBA_Report{'+ToStr(TheTime)+'???}.txt';// this is the problem spot
try
theFile := RewriteFile(thePath, False);
except
Writeln('Error opening file!');
end;
WriteFileString(theFile, '******************************************************************' + #13 + #10);
WriteFileString(theFile, ' AdvancedBarBarianAgility v1.07 by Johnnimms13 & Co.' + #13 + #10);
WriteFileString(theFile, 'Time: ' + TimeRunning + ' Laps ' + IntToStr(Loads) + #13 + #10);
WriteFileString(theFile, 'We have gained ' + ToStr(Round(Exp)) + ' Agility Experience!' + #13 + #10);
WriteFileString(theFile, '******************************************************************' + #13 + #10);
CloseFile(theFile);
end;