[Ajuda] Porque nгo remove o arquivo? DOF2
#1

Olб galera, gostaria de saber porque nгo estб removendo o arquivo da minha pasta teste? Sendo que no format eu consigo exibir o parametro passado.

pawn Код:
CMD:remover(playerid, params[])
{
    new nome[24], string[100], file[70];

    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, -1, "[x] Comando invбlido!");

    if(sscanf(params, "us[24]", nome))
        return SendClientMessage(playerid, -1, "[x] Digite /remover [nome-do-jogador]");
   
    format(file, sizeof(file), "/Teste/%s.ini", nome);
    DOF2_RemoveFile(file);
    DOF2_SaveFile();
   
    format(string, sizeof(string), "[ > ] Vocк removeu o jogador %s!", nome);
    SendClientMessage(playerid, -1, string);
    return 1;
}
Reply


Messages In This Thread
Porque nгo remove o arquivo? DOF2 - by viniciussvl - 16.11.2016, 12:59
Re: Porque nгo remove o arquivo? DOF2 - by viniciussvl - 16.11.2016, 13:17
Re: Porque nгo remove o arquivo? DOF2 - by SmokiieGamer - 16.11.2016, 13:33
Re: Porque nгo remove o arquivo? DOF2 - by IlanZ - 16.11.2016, 20:35
Re: Porque nгo remove o arquivo? DOF2 - by zSuYaNw - 16.11.2016, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)