BUD:: SQL Problem!!
#1

I keep getting "No such player found in the database." when i try the command, and i am 100% sure that there is that specific player i am trying to unban.

Anyone know the solution?
pawn Код:
CMD:unbanaccount(playerid, params[])
{
    if(IsAdminD(playerid, 3))
    {
        new name[MAX_PLAYER_NAME];
        if(sscanf(params, "s[24]", name)){return SendUsageMessage(playerid, "/unbanaccount [Na_Me]");}
        new iUID = BUD::GetNameUID(name);
        if(!BUD::IsNameRegistered(name)) return SendErrorMessage(playerid, "No such player found in the database.");
        format(Cstring, sizeof(Cstring), "[SERVER]: %s has Unbanned account, named: %s.", PlayerName(playerid), name);
        SendClientMessageToAll(COLOR_RED, Cstring);
        BUD::MultiSet(iUID, "i", "Banned", 0);
    }
    return 1;
}
Reply


Messages In This Thread
BUD:: SQL Problem!! - by ddnbb - 09.03.2012, 23:10
Re: BUD:: SQL Problem!! - by ddnbb - 10.03.2012, 07:27
Re: BUD:: SQL Problem!! - by ddnbb - 11.03.2012, 09:46
Re: BUD:: SQL Problem!! - by Stylock - 11.03.2012, 10:46
Re: BUD:: SQL Problem!! - by ddnbb - 11.03.2012, 13:56
Re: BUD:: SQL Problem!! - by ddnbb - 12.03.2012, 15:16
Re: BUD:: SQL Problem!! - by Gooday - 12.03.2012, 15:33
Re: BUD:: SQL Problem!! - by ddnbb - 12.03.2012, 16:05
Re: BUD:: SQL Problem!! - by Slice - 13.03.2012, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)