[Question] - How to get String from inputtext
#7

I made this:

Код:
new senhaadministracao[256];

if(response)
{
        if(strlen(inputtext) == 0)
        return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Nova senha da administraзгo","Escreva abaixo a nova senha", "Concluir", "Cancelar");
	new pass[256];
	new string[256];
	INI_Open("server/administracao.ini");
        pass = INI_ReadString("SenhaAdministracao");
        INI_Close();
	if(!strcmp(pass,inputtext, false))
	{
		ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Nova senha da administraзгo","Escreva abaixo a nova senha", "Concluir", "Cancelar");
		GameTextForPlayer(playerid, "~r~Mesma senha!",3000, 3);
		SendClientMessage(playerid, COLOR_RED, "Vocк digitou a mesma senha atual, escolha outra.");
		return 1;
		}
		else
		{
                format(senhaadministracao, sizeof(senhaadministracao), "%s", inputtext); // VERY IMPORTANT
                SetTimer("arqadmin",4000,false); // NOT IMPORTANT
                GameTextForPlayer(playerid, "~g~Concluido!",4000, 3); // NOT IMPORTANT
                format(string,sizeof(string), "Vocк modificou a senha do administrador para: %s", inputtext); // NOT IMPORTANT
                SendClientMessage(playerid, COLOR_GREEN, string); // NOT IMPORTANT
		}
	return 1;
}


// SAVING:

INI_Open("server/administracao.ini");
INI_WriteString("SenhaAdministracao", senhaadministracao);
INI_Save();
INI_Close();
If i Help you , please REP +
Thank you so much , god bless.
Reply


Messages In This Thread
[Question] - How to get String from inputtext - by xRyder - 01.05.2011, 14:20
Re: [Question] - How to get String from inputtext - by Joe Staff - 01.05.2011, 14:25
Re: [Question] - How to get String from inputtext - by xRyder - 01.05.2011, 14:27
Re: [Question] - How to get String from inputtext - by xRyder - 01.05.2011, 15:04
Re: [Question] - How to get String from inputtext - by Donya - 01.05.2011, 15:10
Re: [Question] - How to get String from inputtext - by Calgon - 01.05.2011, 15:13
Re: [Question] - How to get String from inputtext - by Hayden_Almeida - 30.08.2012, 19:46

Forum Jump:


Users browsing this thread: 1 Guest(s)