LogIn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Needs example) |
||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
--TODO | --TODO | ||
Line 24: | Line 23: | ||
==See Also== | ==See Also== | ||
{{Account_functions}} | {{Account_functions}} | ||
[[Category:Needs Example]] |
Revision as of 17:46, 18 June 2009
This functions logs the given player in to the given account. You need to provide the password needed to log into that account.
Syntax
bool logIn ( player thePlayer, account theAccount, string thePassword )
Required Arguments
- thePlayer: The player to log into an account
- theAccount: The account to log the player into
- thePassword: The password needed to sign into this account
Returns
Returns true if the player was successfully logged into the given account. Returns false or nil if the log in failed for some reason, ie. the player was already logged in to some account (use logOut first), if the account was already in use or if it failed for some other reason.
Example
--TODO
See Also
- addAccount
- copyAccountData
- getAccount
- getAccountData
- getAccountName
- getAccountPlayer
- getAccountSerial
- getAccounts
- getAccountsBySerial
- getAllAccountData
- getPlayerAccount
- isGuestAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountPassword
- getAccountByID
- getAccountID
- getAccountIP
- getAccountsByData
- getAccountsByIP
- setAccountName