Jump to content

Any difference between isGuestAccount and getAccount?


Recommended Posts

Yes, it has difference. When you are not logged in, automatically you get an guest account(when you quit the game, this account is deleted, consequently all data of this account will be lost). So, if you check using getPlayerAccount() it will return the account being guest or not, to be sure that the player logged in use isGuestAccount() after you got the account from the player using getPlayerAccount().

https://wiki.multitheftauto.com/wiki/IsGuestAccount

https://wiki.multitheftauto.com/wiki/GetPlayerAccount

Link to comment
  • Moderators
Yes, it has difference. When you are not logged in, automatically you get an guest account(when you quit the game, this account is deleted, consequently all data of this account will be lost). So, if you check using getPlayerAccount() it will return the account being guest or not, to be sure that the player logged in use isGuestAccount() after you got the account from the player using getPlayerAccount().

https://wiki.multitheftauto.com/wiki/IsGuestAccount

https://wiki.multitheftauto.com/wiki/GetPlayerAccount

Perfect response right here, can't make it more clear.

Link to comment
Yes, it has difference. When you are not logged in, automatically you get an guest account(when you quit the game, this account is deleted, consequently all data of this account will be lost). So, if you check using getPlayerAccount() it will return the account being guest or not, to be sure that the player logged in use isGuestAccount() after you got the account from the player using getPlayerAccount().

https://wiki.multitheftauto.com/wiki/IsGuestAccount

https://wiki.multitheftauto.com/wiki/GetPlayerAccount

I will then always use isGuestAccount !

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