Salut. Am un dialog de schimbare a numelui si am incercat sa-l fac sa fie in limba romana si engleza dar nu reusesc. Ma poate ajuta cineva?
case DIALOG_NEWNICK:
{
if(!response) return KickEx(playerid);
//------------------------------------------------------------------
new szName[24];
//------------------------------------------------------------------
if(sscanf(inputtext, "s[24]", szName)) return ShowPlayerDialog(playerid, DIALOG_NEWNICK, DIALOG_STYLE_INPUT, "Change Nickname", "{FF0000}ERROR - Invalid name.\n\n{FFCC00}Insert you new name.\n{FFFFFF}Your name must contain between 3 and 20 characters and need to be unique!\nAvoid simple names like Ionut, Amir, Razvan etc.\n\n{FF0000}New nick name:", "Continue", "Quit");
if(strlen(szName) < 3 || strlen(szName) > 24) return ShowPlayerDialog(playerid, DIALOG_NEWNICK, DIALOG_STYLE_INPUT, "Schimbare de nume", "{FF0000}EROARE - Nume invalid.\n\n{FFCC00}Introdu noul tau nume.\n{FFFFFF}Ai grija ca numele sa contina intre 3 si 20 de carcatere si sa fie cat mai unic!\nEvitati numele simplu de genul Ionut, Amir, Razvan etc.\n\n{FF0000}Numele nou:", "Continue", "Quit");
if(strfind(szName, "'", true) != -1) return ShowPlayerDialog(playerid, DIALOG_NEWNICK, DIALOG_STYLE_INPUT, "{FF0000}ERROR: {FFFFFF}Change Name", "{00FF00}Please enter below new nickname wich you want to have\n{FFFF00}You can't type in the new name symbol: {FF0000}('){FFFF00}!", "Next", "");
//------------------------------------------------------------------
switch(SetPlayerName(playerid, szName))
{
case -1: ShowPlayerDialog(playerid, DIALOG_NEWNICK, DIALOG_STYLE_INPUT, "{FFFFFF}Change Name", "{FF0000}ERROR: {00FF00}A player is already playing with that nick, please type another one:", "Next", "");
case 0: ShowPlayerDialog(playerid, DIALOG_NEWNICK, DIALOG_STYLE_INPUT, "{FFFFFF}Change Name", "{FF0000}ERROR: {00FF00}You are already known as typed name.", "Next", "");
case 1: OnPlayerConnect(playerid);
}
return 1;
}