Delete a file.
#8

pawn Код:
if(strcmp(cmd, "/delete", true) == 0)
    {
    new name[MAX_PLAYER_NAME];
    new file[128];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), "/vehicles/%s.ini", udb_encode(name));
    if(dini_Exists(file))
        {
        dini_Remove(file);
        }
    return 1;
    }
guess like that if there are more errors tell me
Reply


Messages In This Thread
Delete a file. - by -eXo - 27.07.2009, 23:50
Re: Delete a file. - by ronyx69 - 28.07.2009, 09:44
Re: Delete a file. - by -eXo - 28.07.2009, 14:08
Re: Delete a file. - by saiberfun - 28.07.2009, 14:21
Re: Delete a file. - by -eXo - 28.07.2009, 14:32
Re: Delete a file. - by saiberfun - 28.07.2009, 14:35
Re: Delete a file. - by -eXo - 28.07.2009, 14:48
Re: Delete a file. - by saiberfun - 28.07.2009, 15:12
Re: Delete a file. - by -eXo - 28.07.2009, 15:19
Re: Delete a file. - by Daem - 28.07.2009, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)