Hi there !
First post here, i tried figurint it out myself but i can't find the solution so i'm requesting your help ..
here's part of my script
The query is sent and done well, but the plugin dosen't count the rows number
here is my exported "num_rows" function
and here are my logs
server_log.txt
line 11 is if(nbrRows > 0) then
mariadb_log.txt
First post here, i tried figurint it out myself but i can't find the solution so i'm requesting your help ..
here's part of my script
Code:
local query = "SELECT * FROM vehicles ORDER BY 'ID' ASC;" local result = mysql.query(query) print(result) if(result) then local nbrRows = mysql.num_rows() if(nbrRows > 0) then while true do local row = mysql.get_assoc(result)
here is my exported "num_rows" function
Code:
function num_rows() return mariadb_get_row_count() end AddFunctionExport("num_rows", num_rows)
server_log.txt
Code:
[2019-12-25 15:08:34] [error] [string "vehicles/server/mysql_load.lua"]:11: attempt to compare number with boolean
mariadb_log.txt
Code:
[2019-12-25 15:10:35.612] [mariadb] [error] mariadb_get_row_count: no active cache ([string "mysql/connect.lua"]:125)
Comment