Jump to content

Account Variable Value


GhostXoP

Recommended Posts

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

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
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

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...