Problem with /deleteacc
#1

Keeps saying that name cannot be found.


pawn Код:
CMD:deleteacc(playerid, params[])
{
    new targetname[24], filestring[79];
    if(PlayerInfo[playerid][pAdminLevel] >= 7)
    {
        if(sscanf(params, "s[24]", targetname)) return SendClientMessage(playerid, -1, "Correct usage: /deleteacc [Player's name]");
        format(filestring, sizeof(filestring), "Users/%.ini", targetname);
        if(!fexist(filestring)) return SendClientMessage(playerid, -1, "Error: Account was not found!");
        else
        {
            fremove(filestring);
            new done[128];
            format(done, sizeof(done), "You have delete account %s", targetname);
            SendClientMessage(playerid, -1, done);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with /deleteacc - by Pawnie - 14.08.2013, 20:05
Re: Problem with /deleteacc - by Vanter - 14.08.2013, 20:06
Re: Problem with /deleteacc - by Pawnie - 14.08.2013, 20:12
Re: Problem with /deleteacc - by Alexis1999 - 14.08.2013, 20:42
Re: Problem with /deleteacc - by Pawnie - 14.08.2013, 20:51
Re: Problem with /deleteacc - by Pottus - 14.08.2013, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)