Chaos Posted August 13, 2014 Share Posted August 13, 2014 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
Et-win Posted August 13, 2014 Share Posted August 13, 2014 local gText = guiGetText(memo) if (gText ~= false) then guiSetText(memo, gText.."\n"..account) end 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