Wei Posted June 7, 2012 Share Posted June 7, 2012 I'm learning sql and I need some help. Can somebuddy show me an example of save system ? Link to comment
Castillo Posted June 7, 2012 Share Posted June 7, 2012 Why instead of ask for an example of something specified you don't go to the wiki and try to make it with the examples given? -- SQLite only: executeSQLCreateTable executeSQLDelete executeSQLDropTable executeSQLInsert executeSQLQuery executeSQLSelect executeSQLUpdate -- MySQL and SQLite: dbConnect dbExec dbQuery dbPoll dbFree Link to comment
Cyandie Posted June 7, 2012 Share Posted June 7, 2012 Or this https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL the functions are below. Link to comment
Castillo Posted June 8, 2012 Share Posted June 8, 2012 I wouldn't recommed that Montiz, these functions are old, the built-on MySQL functions are easier to use. Link to comment
Wei Posted June 8, 2012 Author Share Posted June 8, 2012 what about sql resource ? Is there any wiki for it ? Link to comment
Dev Posted June 8, 2012 Share Posted June 8, 2012 I wouldn't recommed that Montiz, these functions are old, the built-on MySQL functions are easier to use. True. Link to comment
Castillo Posted June 8, 2012 Share Posted June 8, 2012 what about sql resource ? Is there any wiki for it ? What do you mean? Link to comment
Wei Posted June 8, 2012 Author Share Posted June 8, 2012 something like that: exports.sql:query_insertid( "INSERT INTO doingJob (Player, State,) VALUES (" .. table.concat( { theName, state } ) .. ")" ) Link to comment
Castillo Posted June 8, 2012 Share Posted June 8, 2012 That resource was created by the game mode scripter. 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