Gtakiki Posted June 4, 2013 Share 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 Link to comment
Gtakiki Posted June 4, 2013 Author Share Posted June 4, 2013 Use : please. waht?i no understand. Link to comment
Jaysds1 Posted June 4, 2013 Share 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 Link to comment
Gtakiki Posted June 4, 2013 Author Share 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 Link to comment
Castillo Posted June 4, 2013 Share Posted June 4, 2013 What's the problem with the script? Link to comment
Gtakiki Posted June 5, 2013 Author Share Posted June 5, 2013 What's the problem with the script? I started mysql and my script but not working. Link to comment
xXMADEXx Posted June 5, 2013 Share Posted June 5, 2013 What's the problem with the script? I started mysql and my script but not working. errors? Link to comment
xXMADEXx Posted June 5, 2013 Share Posted June 5, 2013 errors? Yes Well, what are they? Link to comment
Gtakiki Posted June 5, 2013 Author Share Posted June 5, 2013 Turfsystem BR,CR,Job,etc Link to comment
Jaysds1 Posted June 6, 2013 Share Posted June 6, 2013 lol, Can you type in "/debugscript 1" in-game and take screenshot then post it here please. Link to comment
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