BUD:: SQL Problem!! -
ddnbb - 09.03.2012
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;
}
Re: BUD:: SQL Problem!! -
ddnbb - 10.03.2012
Aaaanyooonee?
Re: BUD:: SQL Problem!! -
ddnbb - 11.03.2012
Bump, still not solved!! :/
Re: BUD:: SQL Problem!! -
Stylock - 11.03.2012
Test this:
pawn Код:
if(iUID == BUD::INVALID_UID) return SendErrorMessage(playerid, "No such player found in the database.");
Re: BUD:: SQL Problem!! -
ddnbb - 11.03.2012
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.. :/
Re: BUD:: SQL Problem!! -
ddnbb - 12.03.2012
+REP if someone can solve this!
Re: BUD:: SQL Problem!! -
Gooday - 12.03.2012
Stop Bump! If no one answers this mean that they doesnt know how!
Re: BUD:: SQL Problem!! -
ddnbb - 12.03.2012
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.
Re: BUD:: SQL Problem!! -
Slice - 13.03.2012
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.