goodiewarrior Posted March 13, 2016 Share Posted March 13, 2016 I was wondering if there is any difference between: if getAccount... then And if isGuestAccount(...) then Link to comment
roaddog Posted March 13, 2016 Share Posted March 13, 2016 getAccount returns an account if the account exist, isGuestAccount returns boolean (true/false) Link to comment
goodiewarrior Posted March 14, 2016 Author Share Posted March 14, 2016 I mean, is there any difference checking if someone is logged or not? Link to comment
RenanPG Posted March 14, 2016 Share Posted March 14, 2016 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 Citizen Posted March 14, 2016 Moderators Share Posted March 14, 2016 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
goodiewarrior Posted March 16, 2016 Author Share Posted March 16, 2016 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
</Mr.Tn6eL> Posted March 16, 2016 Share Posted March 16, 2016 getAccount : get account by name if exists. isGuestAccount : check an account is guest or not, will be return true if the account is guest.. 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