Help with password system
#3

GUI Table - you mean Dialogs? If yes, you can do it like this :

pawn Код:
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;
}
Reply


Messages In This Thread
Help with password system - by Supermaxultraswag - 01.09.2014, 13:40
Re: Help with password system - by K9IsGodly - 01.09.2014, 13:42
Re: Help with password system - by SanAndreasMP - 01.09.2014, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)