14.10.2011, 15:09
- Mudar Nick
- Mudar Senha
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYPE_INPUT,"Mudar Nick","Novo Nick:","Salvar","Oky");
if(dialogid == 1)
{
new string[24];
format(string, sizeof(string),"%s",inputtext);
SetPlayerName(playerid, string);
}
- Mudar Senha
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYPE_INPUT,"Mudar Senha","Nova Senha:","Salvar","Oky");
if(dialogid == 2)
{
new string[24], l[24]; GetPlayerName(playerid, l, 24);
format(string, sizeof(string),"pasta_usuarios/%s.ini",i);
dini_Set(string,"Senha", inputtext);
}