Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 324 && response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
- if(strfind(inputtext, "=", true) != -1)
- {
- SendClientMessage(playerid, -1, "Carattere Non ammesso");
- return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
- }
- if(strfind(inputtext, ",", true) != -1)
- {
- SendClientMessage(playerid, -1, "Carattere Non ammesso");
- return ShowPlayerDialog(playerid,324,DIALOG_STYLE_LIST,"Cambia password","Digita ok per cambiare password","Ok","Esci");
- }
- strmid(PlayerInfo[playerid][pKey], inputtext, 0, strlen(inputtext), 255);
- OnUpdatePlayerAccount(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, " Password cambiata");
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment