[Ajuda] MySql Bugado. - 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] MySql Bugado. (
/showthread.php?tid=659390)
MySql Bugado. -
SrDivuOfficial - 02.10.2018
[0] [ERROR] exception 0XC0000005 (ACCESS_VIOLATION) from Vectored Exception Handler catched; shutting log-core down
este erro no mysql samp
conecta e crash...
e sem conectar tbm crash...
porem nao de aparece no log-samp
Re: MySql Bugado. -
GSantana - 02.10.2018
manda seu cуdigo mysql, ninguйm aqui й adivinho
Re: MySql Bugado. -
SrDivuOfficial - 02.10.2018
Quote:
Originally Posted by GSantana
manda seu cуdigo mysql, ninguйm aqui й adivinho
|
O de conexгo й o mesmo deste
https://sampforum.blast.hk/showthread.php?tid=579909
Jб atualizei os plugin do MySQL e streamer
Pegue o GM perfect games e coloque pra tu veres
Re: MySql Bugado. -
GSantana - 02.10.2018
baixa a versгo R41-4 se a sua for anterior
link:
https://github.com/pBlueG/SA-MP-MySQL/releases
agora vou ensinar como se fazer
PHP код:
new
MySQL: Conexao;//variavel para armazenar nossa conexгo
public OnGameModeInit()//aqui vamos criar a conexгo
{
Conexao = mysql_connect("/*ip aqui*/, "/*usuario aqui*/", "/*senha aqui*/", "/*database aqui*/");
if(mysql_errno(Conexao) == 0)
{
printf("[MYSQL] Sevidor conectado a base de dados !");
}
else {printf("[MYSQL] Erro ao conectar-se a base de dados !");}
return 1;
}
public OnPlayerConnect(playerid)//aqui seleciona a tabela contas
{
format(Query, sizeof(Query), "SELECT * FROM `contas` WHERE `nome` = '%s'", aname);
mysql_tquery(Conexao, Query, "ProcurarPlayer", "i", playerid);
return 1;
}
forward ProcurarPlayer(playerid);//aqui registra ou loga o player
public ProcurarPlayer(playerid)
{
new aname[MAX_PLAYER_NAME], Data[12];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(cache_num_rows() > 0)
{
cache_get_value(0, "senha", Senha[playerid]);
cache_get_value(0, "email", Email[playerid]);
cache_get_value(0, "data", Data);
logado[playerid] = 0;
for(new i; i < 21; i++) TextDrawShowForPlayer(playerid, TextLogin[i]);
SelectTextDraw(playerid, 0xFFFF00FF);
TextDrawSetString(TextLogin[16], aname);
TextDrawSetString(TextLogin[15], Data);
SCM(playerid, INFOA, "Login");
}
else {
SelectTextDraw(playerid, 0xFFFF00FF);
for(new i; i < 16; i++) TextDrawShowForPlayer(playerid, TextRegistro[i]);
SCM(playerid, INFOA, "Registro");
}
return 1;
}
use como base para estudo, o sistma й totalmente funcional, e nгo se esqueзa de criar as tabelas manualmente
Re: MySql Bugado. -
SrDivuOfficial - 02.10.2018
Meu GM й a perfect games
E crashoubdo mesmo geito
Re: MySql Bugado. -
Elsric - 02.10.2018
Jб tentou retirar/atualizar o log-core? rs
Re: MySql Bugado. -
GSantana - 02.10.2018
cara desbugar um sistema mysql em GM pronta й dor de cabeзa, й melhor tu mesmo fazer uma gm do 0
Re: MySql Bugado. -
Malandrin - 02.10.2018
Abra a pasta do seu servidor, abra a pasta LOGS vб em plugins e mande o que estб dentro do arquivo de texto.