Jump to content

Ajutor dialog


Ciobani

Recommended Posts

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;
		}

 

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.