Sign in to follow this  
goodiewarrior

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

Share this post


Link to post
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.

Share this post


Link to post
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 !

Share this post


Link to post

getAccount : get account by name if exists.

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.