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
#2

Aaaanyooonee?
Reply
#3

Bump, still not solved!! :/
Reply
#4

Test this:
pawn Код:
if(iUID == BUD::INVALID_UID) return SendErrorMessage(playerid, "No such player found in the database.");
Reply
#5

Quote:
Originally Posted by YJIET
Посмотреть сообщение
Test this:
pawn Код:
if(iUID == BUD::INVALID_UID) return SendErrorMessage(playerid, "No such player found in the database.");
Damn, didnt work, still the same.. :/
Reply
#6

+REP if someone can solve this!
Reply
#7

Stop Bump! If no one answers this mean that they doesnt know how!
Reply
#8

Quote:
Originally Posted by Gooday
Посмотреть сообщение
Stop Bump! If no one answers this mean that they doesnt know how!
Who the f*** you think you are, to tell me stop bumping? If you dont know how to solve this, stop increasing your posts by posting garbage in topics that people are asking for help. You dont know if there is someone out there who can really help with this. No offence, jeez...

I'ts not like i have been bumping this for every hour or so, i have been patient, and im not like a little b***h ass noob spamming and bumping the thread like crazy.

Please dont even bother to reply this message, as it will be counted as another unnecessary post increase of yours.
Reply
#9

Add this after the sscanf call: "printf("NAME: %s", name);". After that, copy what it says in the console and PM me the user database and I should be able to fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)