29.05.2013, 02:58
As tabelas nгo estгo sendo criadas!
pawn Код:
#include a_samp
#include a_mysql
#define mysql_host "127.0.0.1:83"
#define mysql_user "root"
#define mysql_password ""
#define mysql_database "server"
new Conexao;
public OnGameModeInit(){
Conexao = mysql_connect(mysql_host, mysql_user, mysql_database, mysql_password);
if(!Conexao) {
printf("Falha na conexгo com o banco de dados o servidor serб fechado!");
SendRconCommand("exit");
return true;
}
else {
mysql_function_query(Conexao, "CREATE TABLE IF NOT EXISTS `Usuarios` (`Nome` VARCHAR(21) NOT NULL,`Senha` VARCHAR(129), `PosX` VARCHAR(20),`PosY` VARCHAR(20),`PosZ` VARCHAR(20), `FacingAngle` VARCHAR(10), `Interior` INT(11))", false, "", "");
}
return true;
}