Jump to content
  • 0

Problema MYSQL.


Zephyr.

Question

Problema intalnita (descriere): Erori mysql pe comenziile care se folosesc de MYSQL.
Ero(area / rile) / warning-(ul / urile):

[ERROR] "mysql_query" - invalid connection handle (ID 1)
[ERROR] "mysql_format" - invalid connection handle (ID = 1)
[ERROR] "mysql_tquery" - invalid connection handle (ID = 1)


Liniile de cod / sursa / script-ul(obligatoriu): Orice comanda ce tine de MYSQL, gen /setmoney primesc aceste erori.
Imagini / Video (optional): - - -.
Ati incercat sa rezolvati singur?: Da, am inlocuit mysql_query cu mysql_tquery etc.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Variabila handle, trebuie definita 0, nu 1,  arata o comanda in care folosesti mysql_query sau format sau tquery

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0

Salut, eu folosesc aceasta variabila pentru definirea SQL-ului: new SQL; nu new Handle;

mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `Money`='%d' WHERE `name`='%s'",GetPlayerCash(playerid), playerName);
mysql_tquery(SQL, var, "", "");

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.