How do I make my lua script connect to an SQL server? It's for an RP gamemode I'm making.
If it's an external SQL database, I recommend Azuisleet's tmysql module: [url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk[/url]
If it's sv.db or cl.db, just use the lua functions for it, they're in the wiki.
I heard MySQLOO is broken atm.
I tried the SQL tutorial on the wiki, but it didn't work. How do sv.db and cl.db work? Do I just create them and Gmod handles them as a database? And where do I put them if I want them in a gamemode? Do I just put them in content?
They exist already, you just use the functions. The databases never go away unless you delete them, and if you do I think gmod automatically replaces them with fresh copies.
[QUOTE=Loures;25591906]I heard MySQLOO is broken atm.[/QUOTE]
Works pretty fine on our servers.
I'm not actually sure, last time I checked it didn't work on my PC, I'm just sticking to tmysql3 for now, it is simpler.
Sorry, you need to Log In to post a reply to this thread.