if(dialogid == DIALOG_MUDAREMAIL)
{
strdel(inputtext, 0, 11);
new Nome[MAX_PLAYER_NAME+1];
new String[5000];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), CONTAS, Nome);
SendFormattedMessage(playerid, -1, "Vocк Mudou seu Email Para %s !!", DOF2_GetString(String,"Email"), inputtext);
SendClientMessage(playerid, -1, "Verifique se estб correto, Pois poderбr perder sua conta!");
DOF2_SetString(String,"Email", inputtext);
DOF2_SaveFile();
return 1;
}
if(dialogid == DIALOG_MUDAREMAIL) { if(response) { strdel(inputtext, 0, 11); new Nome[MAX_PLAYER_NAME+1]; new String[5000]; GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), CONTAS, Nome); SendFormattedMessage(playerid, -1, "Vocк Mudou seu Email Para %s !!", DOF2_GetString(String,"Email"), inputtext); SendClientMessage(playerid, -1, "Verifique se estб correto, Pois poderбr perder sua conta!"); DOF2_SetString(String,"Email", inputtext); DOF2_SaveFile(); return 1; } }
Код HTML:
if(dialogid == DIALOG_MUDAREMAIL) { if(response) { strdel(inputtext, 0, 11); new Nome[MAX_PLAYER_NAME+1]; new String[5000]; GetPlayerName(playerid, Nome, sizeof(Nome)); format(String, sizeof(String), CONTAS, Nome); SendFormattedMessage(playerid, -1, "Vocк Mudou seu Email Para %s !!", DOF2_GetString(String,"Email"), inputtext); SendClientMessage(playerid, -1, "Verifique se estб correto, Pois poderбr perder sua conta!"); DOF2_SetString(String,"Email", inputtext); DOF2_SaveFile(); return 1; } } |
Pegou tranquilo, sу que agora quando dou ESC vem outra Dialog por traz '-'
|
if(dialogid == DIALOG_MUDAREMAIL)
{
if(response)
{
strdel(inputtext, 0, 11);
new Nome[MAX_PLAYER_NAME+1];
new String[5000];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), CONTAS, Nome);
SendFormattedMessage(playerid, -1, "Vocк Mudou seu Email Para %s !!", DOF2_GetString(String,"Email"),
inputtext);
SendClientMessage(playerid, -1, "Verifique se estб correto, Pois poderбr perder sua conta!");
DOF2_SetString(String,"Email", inputtext);
DOF2_SaveFile();
return 1;
}
return 1;
}