How to do this ?
#3

https://sampwiki.blast.hk/wiki/Fopen

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
So I guess you'll have to open the file and then close it, so it'll be created.

pawn Код:
if( !fexist( "sucks.txt" ) )
{
    new
        File: file = fopen( "sucks.txt", io_write )
    ;
    fclose( file );
}
Reply


Messages In This Thread
Solved : Code / Server Stops when write - by Joe_Goro - 28.11.2013, 11:08
Re: How to do this ? - by xVIP3Rx - 28.11.2013, 11:20
Re: How to do this ? - by Konstantinos - 28.11.2013, 11:22
Re: How to do this ? - by Joe_Goro - 28.11.2013, 11:26
Re: How to do this ? - by Konstantinos - 28.11.2013, 11:29
Re: How to do this ? - by Joe_Goro - 28.11.2013, 11:37
Re: How to do this ? - by Konstantinos - 28.11.2013, 11:41
Re: How to do this ? - by Joe_Goro - 28.11.2013, 11:43
Re: How to do this ? - by Joe_Goro - 28.11.2013, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)