[Ajuda] Erro ao Mostrar o E-Mail MySQL - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Erro ao Mostrar o E-Mail MySQL (
/showthread.php?tid=610340)
Erro ao Mostrar o E-Mail MySQL -
LosLipe - 22.06.2016
Nгo estб mostrando o E-mail do player ex "E-mail:
LosLipe@hotmail.com"
PHP код:
//VARIAVEIS
enum Info{Email};
new PlayerInfo[MAX_PLAYERS][Info];
//DENTRO DO COMANDO QUE ELE DIGITA
new str[164];
format(str, sizeof(str), "E-mail: %s |", PlayerInfo[playerid][Email]);
//CHAMAR CarregarDadosPlayer
public OnPlayerConnect(playerid)
{
CarregarDadosPlayer(playerid);
return 1;
}
//CARREGAR DADOS
forward CarregarDadosPlayer(playerid);
public CarregarDadosPlayer(playerid){
cache_get_field_content(0, "Email", PlayerInfo[playerid][Email]);
return 1;
}
//
Re: Erro ao Mostrar o E-Mail MySQL -
Lуs - 22.06.2016
PHP код:
new rows, fields;
cache_get_data(rows, fields, mysql);
if(rows > 0)
{
cache_get_field_content(0, "Email", PlayerInfo[playerid][Email], mysql, 64);
}
Re: Erro ao Mostrar o E-Mail MySQL -
LosLipe - 22.06.2016
Funciono aq, vlw
..
REP+.