itHyperoX Posted March 12, 2017 Posted March 12, 2017 Hi. I need a little help about how can i get the player "accountID", i want that, when the player register on the server, it save hes accountid. I found something in "internal", it saving the "UserID", how can i get that in script, or what i need to make this? Here is the picture https://postimg.org/image/ghi2titjn/
Addlibs Posted March 12, 2017 Posted March 12, 2017 Every entry in the database must have a row id primary key. It's mostly ignored on the Lua side, but internally, these IDs are used to associate account data with actual accounts. I don't think you can easily obtain the account ID unless you make your own account system. Besides, I don't really know why would you need it.
NeXuS™ Posted March 13, 2017 Posted March 13, 2017 If you dont mind making your server lag, you can use getAccounts() with a for, and then the "i" arg, which it returns (for i, k in ipairs(getAccounts()) do) is nearly an account ID. Btw, why do you need an account ID?
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