how to change player name on game, i use dini for saving
#2

pawn Code:
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
how to change player name on game, i use dini for saving - by Chrisli520 - 16.10.2013, 22:32
Re: how to change player name on game, i use dini for saving - by tyler12 - 16.10.2013, 22:36
Re: how to change player name on game, i use dini for saving - by Juniiro3 - 16.10.2013, 23:17

Forum Jump:


Users browsing this thread: 1 Guest(s)