Fcreate code
From SA-MP Wiki
Contents |
Description
Fcreate was made by Sacky.
Use
See File_Functions for how to use this code when saving stats.
Code
Add this near the top of the script to be able to use fcreate:
public fcreate(filename[]) { if (fexist(filename)){return false;} new File:fhandle = fopen(filename,io_write); fclose(fhandle); return true; }
fdelete
fdelete came with fcreate. Here is the fdelete code