Death12652
2010-05-17 21:36:02
I have this…
And get this?
Whenever the file is already made?
procedure Save_Usernames(str: String);
var
theFile: Integer;
tempStr: String;
begin
if (FileExists(ScriptPath + 'Yaboe_Usernames.txt')) then
begin
theFile := OpenFile(ScriptPath + Name{This is a constant} + 'Yaboe_Usernames.txt', false);
ReadFileString(theFile, tempStr, FileSize(theFile));
CloseFile(theFile);
end;
theFile := RewriteFile(ScriptPath + 'Yaboe_Usernames.txt', false)
WriteFileString(theFile, tempStr + str + #32#32#32#32#32 + FloatToStr(ext) + #13);
CloseFile(theFile);
end;
And get this?
[Runtime Error] : Exception: Access violation at address 0077B189 in module 'scar.exe'. Read of address 00000003 in line 203 in script C:\Users\Brent\Desktop\SCAR 3.23 Beta\Yaboe Maker V2.1.2[Run Me].scar
Whenever the file is already made?