can you do this?
can you do this?






Yes you can.... wait a sec let me find my function....
EDIT: From my Rune Mysteries Runner...
SCAR Code:procedure SaveDebugToFile;
var
DebugText: string; DebugFile: Integer;
begin
DebugFile := RewriteFile(ScriptPath + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt', False); //Name and location of file
DebugText := GetDebugText; //Gets the text in the debug box
WriteFileString(DebugFile, DebugText); //Writes it to a file
Writeln('Saved debug to file: ' + ScriptPath + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt');
CloseFile(DebugFile);
end;
sweet thanks!
EDIT: what happened?
ok yes i keep editing the post sorry... i just get it to work then something weird happens..
so i get it to run and finish... where does it save the file? whats wrong with this?
procedure SaveDebugToFile;
var
DebugText: string; DebugFile: Integer;
begin
DebugFile := RewriteFile('C:\Program Files\SCAR 3.12\Scripts' + 'bob' + '.txt', True); //Name and location of file
DebugText := GetDebugText; //Gets the text in the debug box
WriteFileString(DebugFile, DebugText); //Writes it to a file
Writeln('Saved debug to file: ' + 'C:\Program Files\Scar 3.12\Scripts' + 'Zephyr''s Rune Mysteries Quest Runner Progress Report' + '.txt');
CloseFile(DebugFile);
end;
begin
end.
There are currently 1 users browsing this thread. (0 members and 1 guests)