spoty Posted October 8, 2014 Share Posted October 8, 2014 hello i have a problem with my drift database i have a database that saves the best drift last drift and total drift points but how can i create it that it takes the last saved points and start counting from that points because how i have it now it only save and load but starts counting from 0 and its just a easy database in .lua with getAccountData setAccountData and setElementData Link to comment
Moderators IIYAMA Posted October 8, 2014 Moderators Share Posted October 8, 2014 https://wiki.multitheftauto.com/wiki/GetAccounts https://wiki.multitheftauto.com/wiki/GetRealTime https://wiki.multitheftauto.com/wiki/SetAccountData http://lua-users.org/wiki/TableLibraryTutorial > table.sort(table [, comp]) Link to comment
spoty Posted October 8, 2014 Author Share Posted October 8, 2014 https://wiki.multitheftauto.com/wiki/GetAccountshttps://wiki.multitheftauto.com/wiki/GetRealTime https://wiki.multitheftauto.com/wiki/SetAccountData http://lua-users.org/wiki/TableLibraryTutorial > table.sort(table [, comp]) thnx Link to comment
spoty Posted October 8, 2014 Author Share Posted October 8, 2014 table is for driftpoints.db right? so yes can i keep it into my drift folder? just found out that my vps dont support mysql Link to comment
Moderators IIYAMA Posted October 8, 2014 Moderators Share Posted October 8, 2014 1 thing is confusing me and that is the sql database from the drift folder and the accountdata. What are you saving in the drift folder and what are you saving at the local mta database? Because the sql database can save exactly the same as the local mta database, but better with more functionality. AFAIK the annoying thing about sql is that you have to start it up with a resource, but in this case it is only for this resource. Link to comment
spoty Posted October 9, 2014 Author Share Posted October 9, 2014 1 thing is confusing me and that is the sql database from the drift folder and the accountdata.What are you saving in the drift folder and what are you saving at the local mta database? Because the sql database can save exactly the same as the local mta database, but better with more functionality. AFAIK the annoying thing about sql is that you have to start it up with a resource, but in this case it is only for this resource. in the drift folder i just simply wanne save the drift points i have da small save script and working fine only it starts counting from 0 evry time 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