SAPE ERROR: Не могу подключиться к серверу: dispenser-01.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

SAPE ERROR: Не могу подключиться к серверу: dispenser-02.saperu.net/code.php?user=836f97673aa6aa25a35b5029263ee232&host=amxxmodx.ru&charset=windows-1251&format=serialize, type: file_get_contents

delete_file » AmxModX
| |
 RSS
  • OnLine

    : 4
    : 3
    : -
    : crawl Bot

    ?

    • AMX Mod X
    • up.org.ua


  • : Admin : 2-01-2012, 14:51 : 3286

    delete_file

    , , , . .

    file.inc:
    /* Deletes file. Function returns 1 on success, 0 on failure. */
    native delete_file(const file[]);


    :
    delete_file(const file[])

    • const file[] -
    1 0 .

    :
    Native

    :
    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <amxmisc>

    #define PLUGIN "[file.inc] delete_file"
    #define VERSION "1.0"
    #define AUTHOR "Admin"

    public plugin_init() {
        
        register_plugin(PLUGIN, VERSION, AUTHOR)
        
        write_file("testfile.txt","Hello",0)

    }
    public plugin_end(){
        

        new result = delete_file("testfile.txt")
        
        server_print("File delete? - %s",result ? "Yes" : "No")
        
    }


    :
    testfile.txt delete_file.
    , ,
    File delete? - Yes

    , , , - .
    File delete? - No
    , .
    .
    delete_file