01.09.2014, 13:40
Sup, I made registration with this lesson https://sampforum.blast.hk/showthread.php?tid=273088 . Can you show how to make the password change system with GUI table? Or just give Example how to make it?
Sup, I made registration with this lesson https://sampforum.blast.hk/showthread.php?tid=273088 . Can you show how to make the password change system with GUI table? Or just give Example how to make it?
|
COMMAND:changepassword(playerid, params[])
{
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT, "Password Changer", "Enter your new password :","Okay","Cancel");
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case dialogid:
{
if(strlen(inputtext) >= 64) return SendClientMessage(playerid, color, "You can't go higher than 64 letter.");
{
new
string[50],
pass[50;
format(PlayerInfo[playerid][pPass], sizeof(pass), "%s", inputtext);
format(string, sizeof(string), "Password has been changed to %s", inputtext);
PlayerInfo[playerid][pPass] = udb_hash(inputtext);
}
}
}
return true;
}