Jump to content

Memo


Chaos

Recommended Posts

hey,

i want to get all accounts in memo but its load only one account

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 
  
    for i,v in ipairs(accountTable) do 
    account = getAccountName (v ) 
        outputChatBox(account, thePlayer ) 
    end 
end 
end 
addCommandHandler( "accountcount", printAmountOfAccounts ) -- add a command handler for command 'accountcount' 

guiSetText(memo,account) 

Link to comment

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