Be, hibátlanul.
-- connection settings
local hostname = get( \"hostname\" ) or \"localhost\"
local username = get( \"username\" ) or \"crazybear\"
local password = get( \"password\" ) or \"itt a jelszó vanxd\"
local database = get( \"database\" ) or \"crazybear\"
local port = tonumber(get( \"port\" )) or 3306
és itt a hibásnak írt rész is.
function ping()
if (mysql_ping(MySQLConnection) == false) then
-- FUU, NO MOAR CONNECTION
destroyDatabaseConnection()
connectToDatabase(nil)
if (mysql_ping(MySQLConnection) == false) then
logSQLError()
return false
end
return true
end
return true
end