Portal SAMP
[Ajuda] Comando - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Comando (/showthread.php?tid=4878)



Comando - Enila182 - 19/09/2024

Olá tudo bem, tem um comando ( /RG ) que tem a função de dialog que mostra email. no sistema de salvamento (MySQL) está salvo e funcionando. só que no email não puxa no comando.

Código:
CMD:rg(playerid) {
    new str[120], StrG[2500], string[210];
    StrG[0] = EOS;
    //[...]
    format(str, sizeof(str), "{B5B5B5}» {FFFFFF}Email: {FFA500}%s\n", PlayerInfo[playerid][pEmail]); strcat(StrG, str);
      ShowPlayerDialog(playerid, D_SISTEMA_RG, DIALOG_STYLE_MSGBOX, "RG", StrG, "Ok", "Fechar");
    return 1;
}



RE: Comando - White_Blue - 19/09/2024

(19/09/2024 13:07)Enila182 Escreveu: Olá tudo bem, tem um comando ( /RG ) que tem a função de dialog que mostra email. no sistema de salvamento (MySQL) está salvo e funcionando. só que no email não puxa no comando.

Código:
CMD:rg(playerid) {
    new str[120], StrG[2500], string[210];
    StrG[0] = EOS;
    //[...]
    format(str, sizeof(str), "{B5B5B5}» {FFFFFF}Email: {FFA500}%s\n", PlayerInfo[playerid][pEmail]); strcat(StrG, str);
      ShowPlayerDialog(playerid, D_SISTEMA_RG, DIALOG_STYLE_MSGBOX, "RG", StrG, "Ok", "Fechar");
    return 1;
}

Já verificou se está armazenando o e-mail corretamente na variável `pEmail`?