Skip to content

Commit

Permalink
Update replay-stocks.sp
Browse files Browse the repository at this point in the history
ecksdee.
  • Loading branch information
Nairdaa authored Aug 17, 2024
1 parent d235d3a commit c4e1ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/include/shavit/replay-stocks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ stock void Shavit_Replay_CreateDirectories(const char[] sReplayFolder, int style
FormatEx(sPath, sizeof(sPath), "%s/0/faketestfile_69.replay", sReplayFolder);
File fTest = OpenFile(sPath, "wb+");

// Check if file was opened successfully before closing
// Check if the file was opened successfully for writing
if (fTest == null)
{
SetFailState("Failed to write to replay folder (%s). Make sure you have file permissions.", sReplayFolder);
}
else
{
// File was opened successfully, now close it
CloseHandle(fTest);
}
}

0 comments on commit c4e1ccd

Please sign in to comment.