BUD Help
#1

pawn Код:
CMD:login(playerid, params[])
{
new password[23];
if(sscanf(params,"s[23]",password)) return SendClientMessage(playerid, -1, "USAGE: /login (password)");
new userid, pName[MAX_PLAYER_NAME];

GetPlayerName(playerid, pName, sizeof pName);
userid = BUD::GetNameUID(pName);

if(BUD::CheckAuth(userid, password))
{
SendClientMessage(playerid, -1, "You have been logged in!");
//"BUD::MultiGet..."
}
else
{
SendClientMessage(playerid, -4, "Wrong password!");
}
return 1;
}
Anyone know how to change it to a DINI or Y_INI system? Thanks.
As I'm not very good with BUD.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)