06.06.2014, 14:43
Quote:
Код HTML:
C:\Users\Leonardo\Desktop\0.3z\gamemodes\BSL.pwn(84) : error 035: argument type mismatch (argument 1) C:\Users\Leonardo\Desktop\0.3z\gamemodes\BSL.pwn(85) : error 017: undefined symbol "mysql_store_result" C:\Users\Leonardo\Desktop\0.3z\gamemodes\BSL.pwn(86) : error 017: undefined symbol "mysql_num_rows" C:\Users\Leonardo\Desktop\0.3z\gamemodes\BSL.pwn(94) : error 017: undefined symbol "mysql_free_result"
pawn Код:
public OnGameModeInit()
{
/*******************************[CONETANDO-SE AO BANCO DE DADOS]**********************************/
MySQL = mysql_connect(Mysql_Host, Mysql_Usuario, Mysql_Db, Mysql_Senha);
if(MySQL)
{
printf("MySQL: ConexГЈo com o banco de dados estabelecida com Sucesso!");
}
mysql_query("SELECT user_senha FROM `players` WHERE `user_nick`='Stronda_xD'");
mysql_store_result(); //Armazena os resultados
if(mysql_num_rows() > 0)
{
printf("sim");
}
else
{
printf("nГЈo");
}
mysql_free_result();
/*************************************************************************************************/
return 1;
}
pawn Код:
mysql_query("SELECT user_senha FROM `players` WHERE `user_nick`='Stronda_xD'");
pawn Код:
mysql_store_result(); //Armazena os resultados
pawn Код:
if(mysql_num_rows() > 0)
pawn Код:
mysql_free_result();