Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. if(dialogid == 324 && response)
  4. {
  5. if(!strlen(inputtext)) return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
  6. if(strfind(inputtext, "=", true) != -1)
  7. {
  8. SendClientMessage(playerid, -1, "Carattere Non ammesso");
  9. return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
  10. }
  11. if(strfind(inputtext, ",", true) != -1)
  12. {
  13. SendClientMessage(playerid, -1, "Carattere Non ammesso");
  14. return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
  15. }
  16. strmid(PlayerInfo[playerid][pKey], inputtext, 0, strlen(inputtext), 255);
  17. OnUpdatePlayerAccount(playerid);
  18. SendClientMessage(playerid, COLOR_YELLOW, " Password cambiata");
  19. }
  20. return 1;
  21. }
Add Comment
Please, Sign In to add comment