I just got this..
:
Just edit this.
pawn Код:
case DIALOG_EMIGRATION_PHONE: {
if(strlen(inputtext) >= 8) {
SendClientMessage(playerid, COLOR_GREY, "You number should be 8 digits or less/ Your number should be digits.");
ShowPlayerDialog(playerid,DIALOG_EMIGRATION_PHONE, DIALOG_STYLE_INPUT, "Phone Change", "Type here's your new number", "Enter", "Cancel");
return 1;
}
if(response) // If they clicked 'Yes' or pressed enter
{
new messageString[128];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
playerVariables[playerid][pPhoneNumber] = strval(inputtext);
format(messageString, sizeof(messageString), "*Phone Number Changed : %s (%d) to %s",szPlayerName, playerid ,inputtext);
submitToAdmins(messageString, COLOR_YELLOW);
}
pawn Код:
case DIALOG_EMIGRATION: {
if(response) switch(listitem) {
case 0: ShowPlayerDialog(playerid,DIALOG_EMIGRATION_NAME, DIALOG_STYLE_INPUT, "Name Change", "Type here you're new name", "Enter", "Cancel");
case 1: ShowPlayerDialog(playerid,DIALOG_EMIGRATION_PHONE, DIALOG_STYLE_INPUT, "Phone Change", "Type here's your new number", "Enter", "Cancel");
case 2: ShowPlayerDialog(playerid,DIALOG_EMIGRATION_AGE, DIALOG_STYLE_INPUT, "Phone Change", "Type here's your new age", "Enter", "Cancel");
}
}
pawn Код:
format(aString, sizeof(aString), "Emigration Service");
ShowPlayerDialog(playerid, DIALOG_EMIGRATION, DIALOG_STYLE_LIST, aString, "Name Change\nPhone Change\nGender Change(Shemales only)\nWeapon License", "Select", "Cancel");