getAccounts
Client-side
 Server-side
 Shared
 This function returns a table over all the accounts that exist in the server internal.db file.
OOP Syntax Help! I don't understand this!
- Method: Account.getAll(...)
Syntax
table getAccounts ( )Returns
- table: accounts table
A table over the accounts that exist in the server internal.db file. This table might be empty.
Code Examples
 server   
 This example displays the number of registered accounts on the server in the chat after typing the command accountcount.
function printAmountOfAccounts ( thePlayer )    local accountTable = getAccounts () -- return the table over accounts    if #accountTable == 0 then -- if the table is empty        outputChatBox( "There are no accounts. :(", thePlayer )    else -- table isn't empty        outputChatBox( "There are " .. #accountTable .. " accounts in this server!", thePlayer )    endendaddCommandHandler( "accountcount", printAmountOfAccounts ) -- add a command handler for command 'accountcount'See Also
Account Functions
- addAccount
- copyAccountData
- getAccount
- getAccountData
- getAccountByID
- getAccountIP
- getAccountID
- getAccountName
- getAccountPlayer
- getAccountType
- getAccountSerial
- getAccounts
- getAccountsByData
- getAccountsByIP
- getAccountsBySerial
- getAllAccountData
- isGuestAccount
- getPlayerAccount
- logIn
- logOut
- removeAccount
- setAccountData
- setAccountName
- setAccountPassword
- setAccountSerial
 
 