Edikosh998 Posted May 16, 2012 Share Posted May 16, 2012 Hi everyone, I wanna know if... table = {} table[player] = true -- for example if that data is going to be removed when the player quits or it will be saved. Link to comment
Castillo Posted May 16, 2012 Share Posted May 16, 2012 Every time a player joins, his userdata changes, the data will still be on the table, but the player can't access to it. Link to comment
Edikosh998 Posted May 16, 2012 Author Share Posted May 16, 2012 So instead of saving data using the userdata player, I can table = {} getAccountName(account) table[accountName] = true Right? Link to comment
Castillo Posted May 16, 2012 Share Posted May 16, 2012 Exactly, you could also use the player serial instead. Link to comment
Edikosh998 Posted May 16, 2012 Author Share Posted May 16, 2012 Great, and my last question : An array data, resets ( or delete/elimina ) when you quit or refresh your server? Link to comment
Castillo Posted May 16, 2012 Share Posted May 16, 2012 You mean if the arrays/tables are lost when you restart the server? if so then of course. 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