Portal SAMP
[Ajuda] MYSQL - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] MYSQL (/showthread.php?tid=1570)



MYSQL - Smith - 28/08/2021

auguem pode me ajuda?
esta dando erro no mysql_query
Código:
#include  <a_mysql>

mysql_query("CREATE TABLE IF NOT EXISTS pInfo(user VARCHAR(24), password VARCHAR(40), score INT(20), dinheiro INT(20), IP VARCHAR(16) )");
   
Código PHP:
error 017undefined symbol "mysql_query" 



RE: MYSQL - xbruno1000x - 28/08/2021

Cara, eu não achei essa função no MySql mais atual (r-41-4).

As funções que achei foram:

Código:
native mysql_pquery(MySQL:handle, const query[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native mysql_tquery(MySQL:handle, const query[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native Cache:mysql_query(MySQL:handle, const query[], bool:use_cache = true);
native mysql_tquery_file(MySQL:handle, const file_path[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native Cache:mysql_query_file(MySQL:handle, const file_path[], bool:use_cache = false);

Link:
https://github.com/pBlueG/SA-MP-MySQL/releases


RE: MYSQL - Smith - 29/08/2021

(28/08/2021 22:27)xbruno1000x Escreveu: Cara, eu não achei essa função no MySql mais atual (r-41-4).

As funções que achei foram:

Código:
native mysql_pquery(MySQL:handle, const query[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native mysql_tquery(MySQL:handle, const query[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native Cache:mysql_query(MySQL:handle, const query[], bool:use_cache = true);
native mysql_tquery_file(MySQL:handle, const file_path[], const callback[] = "", const format[] = "", {MySQL, Float,_}:...);
native Cache:mysql_query_file(MySQL:handle, const file_path[], bool:use_cache = false);
qual função cria a tabela caso ela não exista no banco de dados?


RE: MYSQL - mau.tito - 29/08/2021

Bom dia Prezados,

Posso estar enganado, faz tempo que não estou programando, mas não seria mysql_function_query ?

Att,


RE: MYSQL - Smith - 29/08/2021

(29/08/2021 10:00)mau.tito Escreveu: Bom dia Prezados,

Posso estar enganado, faz tempo que não estou programando, mas não seria mysql_function_query ?

Att,

Código PHP:
mysql_function_query("CREATE TABLE IF NOT EXISTS pinfo(user VARCHAR(24), password VARCHAR(40), score INT(20), dinheiro INT(20), IP VARCHAR(16) )"); 
Código PHP:
error 035argument type mismatch (argument 1