GhostXoP Posted December 20, 2012 Share Posted December 20, 2012 In MTA's getPlayerAccount It returns an account. Is this number a reference to a data spot in Internal.db? can this number value be reused between games? Say getPlayerAccount(thePlayer) returns F0003000, and then say i turned the server off, turned it back on and used that number to reference a players account, would it reference the same account? In other words, the Account object returned by getPlayerAccount(thePlayer), is it reuseable? say i stored this value (account object) and reused it when the server turned back on, to check the player name of the account, would it be an invalid reference? Or would it still resemble the players account? Link to comment
GhostXoP Posted December 20, 2012 Author Share Posted December 20, 2012 Nevermind, as far as i know, and read they are. Link to comment
Techial Posted December 20, 2012 Share Posted December 20, 2012 getAccountData setAccountData Link to comment
Anderl Posted December 20, 2012 Share Posted December 20, 2012 getAccountDatasetAccountData This is not what he wants to know. Link to comment
Techial Posted December 20, 2012 Share Posted December 20, 2012 Is it this then? getAccountName Link to comment
Anderl Posted December 20, 2012 Share Posted December 20, 2012 Read his question again: Say getPlayerAccount(thePlayer) returns F0003000, and then say i turned the server off, turned it back on and used that number to reference a players account, would it reference the same account?In other words, the Account object returned by getPlayerAccount(thePlayer), is it reuseable? say i stored this value (account object) and reused it when the server turned back on, to check the player name of the account, would it be an invalid reference? Or would it still resemble the players account? He's asking if the account element that is returned by getPlayerAccount can be re-used after a restart of the server. Link to comment
Techial Posted December 20, 2012 Share Posted December 20, 2012 Oh.. I didn't quite get him, but no you can't. Because the value the getPlayerAccount returns depends on all the variables and objects. Sometimes you get F0003000 and sometimes you get F0003001, so I wouldn't really rely on that though you may use client serial. Link to comment
GhostXoP Posted December 21, 2012 Author Share Posted December 21, 2012 This is not what he wants to know. He's asking if the account element that is returned by getPlayerAccount can be re-used after a restart of the server. Thanks for clearing that up I'm going to test this today, to see for myself if the data is a pointer to a line in Internal.DB or just a Pointer to a random class in memory. 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