Fcreate code

From SA-MP Wiki

Revision as of 15:55, 21 July 2009; view current revision
←Older revision | Newer revision→
Jump to: navigation, search

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