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 Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
Gtakiki Posted June 4, 2013 Author Posted June 4, 2013 Use : please. waht?i no understand. Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
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 My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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 Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
Castillo Posted June 4, 2013 Posted June 4, 2013 What's the problem with the script? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
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? The Ultimate Lua Tutorial! | MTA PHP SDK
Gtakiki Posted June 5, 2013 Author Posted June 5, 2013 errors? Yes Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
xXMADEXx Posted June 5, 2013 Posted June 5, 2013 errors? Yes Well, what are they? The Ultimate Lua Tutorial! | MTA PHP SDK
Gtakiki Posted June 5, 2013 Author Posted June 5, 2013 Turfsystem BR,CR,Job,etc Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
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. My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Gtakiki Posted June 11, 2013 Author Posted June 11, 2013 How innistal mysql? Hello Everyone! Ingame nick:[CPT]Gtakiki Website: http://cptmta.netwaresystems.hu/ [CPT]Gtakiki
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