Jump to content

[REL] MySQL Account Data System


ahmedo01

Recommended Posts

Hello everybody,

Now, you can save your account data to MySQL tables. I cant explain it much more because it's same as normal account data but only difference is my account data system is using MySQL. Sorry for my bad English. The script has some exports:

setAccountData(acc,datakey,value) 
string getAccountData(acc,datakey) 
removeAccountData(acc,datakey) 
getAllAccountData(acc) 

You need to execute this queries in MySQL:

CREATE TABLE `datamanager` ( 
  `id` int(11) NOT NULL, 
  `username` text COLLATE utf8_general_ci NOT NULL, 
  `datatable` text COLLATE utf8_general_ci NOT NULL 
) 

https://community.multitheftauto.com/in ... s&id=13004

Hope you like it, report bugs please

Link to comment
setAccountData(acc,datakey,value) 
string getAccountData(acc,datakey) 
removeAccountData(acc,datakey) 
getAllAccountData(acc) 

..., report bugs please

Change the syntax cause those two functions setAccountData and getAccountData are mta defined functions.

You can do something like accountSetData() and accountGetData().

Link to comment
setAccountData(acc,datakey,value) 
string getAccountData(acc,datakey) 
removeAccountData(acc,datakey) 
getAllAccountData(acc) 

..., report bugs please

Change the syntax cause those two functions setAccountData and getAccountData are mta defined functions.

You can do something like accountSetData() and accountGetData().

Thanks for reply. I think I dont need to change function names. Because the developers will use it as exports.xxxx:setAccountData() . No need to change.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...