Gtakiki Posted June 4, 2013 Posted June 4, 2013 Hi all help me PLS local host = "" -- mysql host url local username = "" -- your sql login username local password = "" -- your sql login password local database = "" -- yoru sql database name -- To Connect to main database, use -- -- exports['MySQL']:connectMain(source) ------ Nothing Below Here Needs To Be Edited. ----- function getHost() return host end function getUser() return username end function getPass() return password end function getDatabase() return database end function connectMain() return dbConnect("mysql", "dbname="..database..";host="..host, username, password, "autoreconnect=1") end function customConnect(cdata,chost,cuser,cpass) return dbConnect("mysql", "dbname="..cdata..";host="..chost, cuser, cpass, 'autoreconnect=1') end
Jaysds1 Posted June 4, 2013 Posted June 4, 2013 (edited) Here: local host = "" -- mysql host url local username = "" -- your sql login username local password = "" -- your sql login password local database = "" -- yoru sql database name -- To Connect to main database, use -- -- exports['MySQL']:connectMain(source) ------ Nothing Below Here Needs To Be Edited. ----- function getHost() return host end function getUser() return username end function getPass() return password end function getDatabase() return database end function connectMain() return dbConnect("mysql", "dbname="..database..";host="..host, username, password, "autoreconnect=1") end function customConnect(cdata,chost,cuser,cpass) return dbConnect("mysql", "dbname="..cdata..";host="..chost, cuser, cpass, 'autoreconnect=1') end Please read here next time: https://forum.multitheftauto.com/viewto ... b05aa262f3 Anyways, What do you need help with? Edited June 4, 2013 by Guest
Gtakiki Posted June 4, 2013 Author Posted June 4, 2013 local host = "" -- mysql host url local username = "" -- your sql login username local password = "" -- your sql login password local database = "" -- yoru sql database name -- To Connect to main database, use -- -- exports['MySQL']:connectMain(source) ------ Nothing Below Here Needs To Be Edited. ----- function getHost() return host end function getUser() return username end function getPass() return password end function getDatabase() return database end function connectMain() return dbConnect("mysql", "dbname="..database..";host="..host, username, password, "autoreconnect=1") end function customConnect(cdata,chost,cuser,cpass) return dbConnect("mysql", "dbname="..cdata..";host="..chost, cuser, cpass, 'autoreconnect=1') end
Gtakiki Posted June 5, 2013 Author Posted June 5, 2013 What's the problem with the script? I started mysql and my script but not working.
xXMADEXx Posted June 5, 2013 Posted June 5, 2013 What's the problem with the script? I started mysql and my script but not working. errors?
Jaysds1 Posted June 6, 2013 Posted June 6, 2013 lol, Can you type in "/debugscript 1" in-game and take screenshot then post it here please.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now