14.10.2011, 20:51
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 405)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT,"Mudar Nick","Novo Nick:","Trocar","Sair");
SetPlayerName(playerid, inputtext);
}
if(dialogid == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,"Mudar Senha","Nova Senha:","Trocar","Sair");
new string[100], name[24]; GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"%s.ini",name);
dini_Set(string,"Senha", inputtext);
}
}
return 1;
}