fremove bug
#1

File is not deleted after executing the command
no clue why
Anyone ?
PHP Code:
CMD:clearbans(playerid)
{
    if(!
IsAuth(playerid6)) return NoAuth(playerid);
    
fremove("bans.cfg");
    new 
File:file fopen("bans.cfg"io_readwrite);
    
fclose(file);
    new 
string[128];
    
format(stringsizeof(string), "AdmCmd: %s %s has cleared the ban list, therefore, everyone have been unbanned."RPARN(playerid), RPN(playerid));
    
Log("unban.log"string);
    
SendAMessage(1string);
    return 
1;

Reply


Messages In This Thread
fremove bug - by NeXoR - 20.06.2016, 04:02
Re: fremove bug - by Gammix - 20.06.2016, 04:21
Re: fremove bug - by Slawiii - 20.06.2016, 04:21
Re: fremove bug - by Dayrion - 20.06.2016, 04:25
Re: fremove bug - by NeXoR - 20.06.2016, 05:04
Re: fremove bug - by Jf - 20.06.2016, 05:24
Re: fremove bug - by NeXoR - 20.06.2016, 07:01

Forum Jump:


Users browsing this thread: 3 Guest(s)