Jump to content

Any difference between isGuestAccount and getAccount?


Recommended Posts

Posted

getAccount returns an account if the account exist, isGuestAccount returns boolean (true/false)

You gone learn today.

I work my ass off, but I still can't pay tho.

  • Moderators
Posted
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.

The rEvolution is coming ...

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

Posted

getAccount : get account by name if exists.

isGuestAccount : check an account is guest or not, will be return true if the account is guest..

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

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