Problem with /deleteacc
#3

Quote:
Originally Posted by Vanter
Посмотреть сообщение
hmmmm, it doesn't seem bugged for me.
make sure you have the correct path written and the correct name
Uhm writting it normaly and the file path is also okay since I am using same method for /unbanacc and it works.

Here is the example of my unban. (UNBAN WORKS)

pawn Код:
CMD:unban(playerid, params[])
{
    new targetname[24], filestring[79];
    if(PlayerInfo[playerid][pAdminLevel] >= 7)
    {
        if(sscanf(params, "s[24]", targetname)) return SendClientMessage(playerid, -1, "Correct Usage: /unban [Player's Name]");
        format(filestring, sizeof(filestring), "Users/%s.ini", targetname);
        if(!fexist(filestring)) return SendClientMessage(playerid, -1, "Error: The player name you have chosen was not found in our system.");
        else
        {
            new INI:file = INI_Open(filestring);
            INI_SetTag(file, "Player's Data");
            INI_WriteInt(file, "Banned", 0);
            INI_Close(file);
            new done[128];
            new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
            GetPlayerName(playerid, name, sizeof(name));
            format(done, sizeof(done), "You have unbanned %s", targetname);
            format(string, sizeof(string), "Administrator %s have just unbanned %s", name, targetname);
            AdminLog(string);
            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)