/removeacc help.
#7

I am using this and it works perfectly:

pawn Код:
CMD:deleteaccount(playerid, params[])
{
    new accName[MAX_PLAYER_NAME], str[50], string[128];
    if(sscanf(params,"s[24]", accName)) return SendClientMessage(playerid, -1 , "Usage: /deleteaccount [Accountname]");
    format(str, sizeof(str), "Users/%s.ini", accName);
    if(!fexist(str)) return SendClientMessage(playerid, -1 , "That account name doesn't exist!");
    fremove(str);
    format(string, sizeof(string), "You have successfully deleted %s's account." ,accName);
    SendClientMessage(playerid, -1, string);
    return 1;
}
Reply


Messages In This Thread
/removeacc help. - by lean1337 - 08.02.2013, 11:30
Re: /removeacc help. - by blackdragon1 - 08.02.2013, 11:37
Re: /removeacc help. - by lean1337 - 08.02.2013, 11:38
Re: /removeacc help. - by lean1337 - 14.02.2013, 11:11
Re: /removeacc help. - by ZayanImran - 14.02.2013, 11:27
Re: /removeacc help. - by lean1337 - 14.02.2013, 13:22
Re: /removeacc help. - by ]Rafaellos[ - 14.02.2013, 15:10
Re: /removeacc help. - by lean1337 - 14.02.2013, 15:32
Re: /removeacc help. - by ]Rafaellos[ - 14.02.2013, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)