Szerző Téma: MySQL probléma  (Megtekintve 540 alkalommal)

MySQL probléma
« Dátum: 2019. Április 14. - 15:26:50 »
0
Sziasztok. Mit tegyek akkor amikor ezt adja ki az MTA-m? 
 
 
 



   
      [19-04-14 14:25:43] ERROR: mysql/connection.lua:206: attempt to call global \'mysql_escape_string\' (a nil value)
   
   
      [19-04-14 14:25:43] ERROR: mysql/connection.lua:206: attempt to call global \'mysql_escape_string\' (a nil value)
   
   
      [19-04-14 14:25:43] ERROR: ***_admins/codeServer.lua:359: call: failed to call \'mysql:escape_string\' [string \"?\"]
   
   
      [19-04-14 14:25:43] ERROR: mysql/connection.lua:206: attempt to call global \'mysql_escape_string\' (a nil value)
   
   
      [19-04-14 14:25:43] ERROR: mysql/connection.lua:206: attempt to call global \'mysql_escape_string\' (a nil value)
   
   
      [19-04-14 14:25:43] ERROR: ***_admins/codeServer.lua:359: call: failed to call \'mysql:escape_string\' [string \"?\"]
   
   
      [19-04-14 14:25:43] ERROR: ***_admins/codeServer.lua:359: attempt to concatenate a boolean value
   

[/quote]
 
A válaszokat előre is köszönöm.
« Utoljára szerkesztve: 2019. Április 14. - 15:28:20 írta RicsiTM »

Nem elérhető Fuzzy

MySQL probléma
« Válasz #1 Dátum: 2019. Április 14. - 15:58:31 »
0
ezeket a sorokat a scriptből ide tudod másolni?

MySQL probléma
« Válasz #2 Dátum: 2019. Április 14. - 17:34:03 »
0
Persze. Itt vannak :
 
 
 



   
      Mysql :
   
   
      return mysql_escape_string(MySQLConnection, string)
   
   
      MTA :
   
   
      local dbid = getElementData(targetPlayer, \"dbid\")
   
   
      local result = mysql:query(\"SELECT charactername FROM characters WHERE charactername=\'\" .. mysql:escape_string(newName) .. \"\' AND id != \" .. mysql:escape_string(dbid))
   
   
      if (mysql:num_rows(result)>0) then outputChatBox(\"#7CC576[#7CC576***#ffffffMTA #ffffff- #53bfdcAdmin információ#7CC576]:#ffffff Ez a név már használatban.\", thePlayer, 255, 0, 0,true) else
   

[/quote]
 
 

MySQL probléma
« Válasz #3 Dátum: 2019. Április 15. - 14:19:59 »
0
Már megoldódott az ügy. Köszönöm a segítségeket azért. Zárható / Helyezhető.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal