Unblock bugs
#9

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Use this and show me the results of debug
pawn Код:
command(unblock, playerid, params[])
{
    if(Player[playerid][AdminLevel] < 6) return true;

    new Name[32];
    print("Debug : 1");
    if(sscanf(params, "s[32]", Name))
    {
        print("Debug : 2");
        SendClientMessage(playerid, WHITE, "SYNTAX: /unblock [Name]");
        return SendClientMessage(playerid, GREY, "NOTE: This command is CaSe SeNsItIvE.");
    }


    if(strlen(Name) >= 3 && strlen(Name) < MAX_PLAYER_NAME+1)
    {
        print("Debug : 3");
        new string[64];
        format(string, sizeof(string), "Accounts/%s.ini", Name);
        if(!fexist(string)) return SendClientMessage(playerid, WHITE, "Account not found.");

        print("Debug : 4");
        printf("Debug : %s",Name);
        if(dini_Int(string, "Banned") == 2)
        {
            print("Debug : 5");
            dini_IntSet(string, "Banned", -1);
            format(string, sizeof(string), "INFO: %s has unblocked %s", GetName(playerid), Name);
            UnBlockLog(string);
            SCM(playerid, YELLOW, string);
        }
    }
    return true;
}
Im in bed right now tomorrow you got the result, where should i find the result? In chat or where?
Reply


Messages In This Thread
Unblock bugs - by Stefand - 18.09.2012, 18:02
Re: Unblock bugs - by xMCx - 18.09.2012, 18:08
Re: Unblock bugs - by Stefand - 18.09.2012, 18:11
Re: Unblock bugs - by ViniBorn - 18.09.2012, 18:12
Re: Unblock bugs - by xMCx - 18.09.2012, 18:14
Re: Unblock bugs - by Stefand - 18.09.2012, 18:18
Re: Unblock bugs - by Stefand - 18.09.2012, 18:29
Re: Unblock bugs - by ViniBorn - 18.09.2012, 18:51
Re: Unblock bugs - by Stefand - 18.09.2012, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)