09.03.2012, 23:10
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?
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;
}