Hello, I've found vG's Sapphire Script and when I launch server.exe, it said (at the end):
Some lines of my connection.lua:
-- connection settings
local hostname = "**HOST**"
local username = "** USR **"
local password = "**PASS**"
local database = "**DB**"
local port = 3306
-- global things.
local MySQLConnection = nil
local resultPool = { }
local sqllog = false
local countqueries = 0
-- connectToDatabase - Internal function, to spawn a DB connection
function connectToDatabase(res)
MySQLConnection = mysql_connect(hostname, username, password, database, port)
if (not MySQLConnection) then
if (res == getThisResource()) then
cancelEvent(true, "Cannot connect to the database.")
end
return nil
end
return nil
end
SQL works with another gamemodes.