changename cmd y_ini system problem
#3

use this stock
pawn Код:
stock frename(oldname[], newname[])
{
    if (!fexist(oldname)) return 0;
    new File:oldfile = fopen(oldname, io_read);
    new File:newfile = fopen(newname, io_write);
    new line[256];
    while (fread(oldfile, line))
    {
        fwrite(newfile, line);
    }
    fclose(oldfile);
    fclose(newfile);
    fremove(oldname);
    return 1;
}
Reply


Messages In This Thread
changename cmd y_ini system problem - by lonalovegood1 - 23.04.2014, 07:32
Re: changename cmd y_ini system problem - by Kyance - 23.04.2014, 09:39
Re: changename cmd y_ini system problem - by BroZeus - 23.04.2014, 11:05

Forum Jump:


Users browsing this thread: 2 Guest(s)