14/07/2024 19:19
(Esta mensagem foi modificada pela última vez a: 14/07/2024 19:22 por Nogueira.)
Quando fui ligar o servidor no samp-server ele nao fala nenhuma informacao sobre se o mysql carregou ou nao entao decedi olhar as logs e fui na log-core e estava dando essa info:
em pt-br:
nao sei oque pode ser.
A conexao:
O banco de dados esta sendo hospedado no localhost
Meu server_log:
Código:
[19:10:55] [INFO] received Windows console close event; shutting log-core down
Código:
[19:10:55] [INFO] recebeu evento de fechamento do console do Windows; desligando o log-core
nao sei oque pode ser.
A conexao:
Código:
forward ConectarDBM();
public ConectarDBM()
{
IDConexao = mysql_connect(HOST, USUARIO, SENHA, DATABASE);
if(mysql_errno(IDConexao) != 0)
{
print("Falha na conexгo ao banco de dados Mysql");
} else {
print("Conexгo ao banco de dado Mysql efetuada com sucesso");
}
mysql_tquery(IDConexao, "CREATE TABLE IF NOT EXISTS `Contas`\
(`ID` int AUTO_INCREMENT PRIMARY KEY,\
`Nome` varchar(24) NOT NULL,\
`Senha` varchar(20) NOT NULL,\
`Level` int(20) NOT NULL DEFAULT 0,\
`Matou` int(10) NOT NULL DEFAULT 0,\
`Morreu` int(10) NOT NULL DEFAULT 0,\
`Skin` int(10) NOT NULL DEFAULT 0,\
`Admin` int(10) NOT NULL DEFAULT 0,\
`Sexo` varchar(24) NOT NULL DEFAULT 'Masculino',\
`Dinheiro` int(20) NOT NULL DEFAULT 0)");
return 1;
}
Meu server_log:
Código:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[19:10:49] weburl = "www.sa-mp.com" (string)
[19:10:49]
[19:10:49] Server Plugins
[19:10:49] --------------
[19:10:49] Loading plugin: sscanf.dll
[19:10:49]
[19:10:49] ===============================
[19:10:49] sscanf plugin loaded.
[19:10:49] Version: 2.8.2
[19:10:49] (c) 2012 Alex "Y_Less" Cole
[19:10:49] ===============================
[19:10:49] Loaded.
[19:10:49] Loading plugin: streamer.dll
[19:10:49]
*** Streamer Plugin v2.9.5 by Incognito loaded ***
[19:10:49] Loaded.
[19:10:49] Loading plugin: mysql.dll
[19:10:49] >> plugin.mysql: R41-4 successfully loaded.
[19:10:49] Loaded.
[19:10:49] Loaded 3 plugins.
[19:10:49]
[19:10:49] Filterscripts
[19:10:49] ---------------
[19:10:49] Loading filterscript 'save.amx'...
[19:10:49] Loaded 1 filterscripts.
[19:10:49]
[19:10:49]
[19:10:49]
[19:10:49] =======================================
[19:10:49] | |
[19:10:49] | YSI version 4.00.0001 |
[19:10:49] | By Alex "Y_Less" Cole |
[19:10:49] | |
[19:10:49] =======================================
[19:10:49]
[19:10:49] *** YSI Error: y_hooks attempting to redirect a PROC hook
[19:10:49] ------------------
[19:10:49] Servidor Carregado
[19:10:49] ------------------
[19:10:49] Number of vehicle models: 0