28.11.2013, 11:22
https://sampwiki.blast.hk/wiki/Fopen
So I guess you'll have to open the file and then close it, so it'll be created.
Quote:
io_read Reads from the file. io_write Write in the file, or create the file. Erases all contents. io_readwrite Reads the file or creates it io_append Appends (adds) to file, write-only. If the file does not exist, it is created |
pawn Код:
if( !fexist( "sucks.txt" ) )
{
new
File: file = fopen( "sucks.txt", io_write )
;
fclose( file );
}