• end expected
    2 replies, posted
'end' expected (to close 'function' at line 20) near 'mysql' This is the function that the error occurs on. [lua] function MySQL_Select_Query(query) local db, error = mysql.connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATA) if (db == 0) then print("error "..tostring(error) .. "\n") return '' end local querylol = mysql.query(db, query) return querylol mysql.disconnect(db) end [/lua] I must be retarted because I couldn't find the issue.
put "mysql.disconnect(db)" before the return.
Wow. I am a fucking idiot.
Sorry, you need to Log In to post a reply to this thread.