WickedBIJ Posted June 21, 2016 Share Posted June 21, 2016 How can I get the some of money of players in a specific team? Maybe something like this? function checkMoney (team) local players = getPlayersInTeam(team) for i,v in ipairs(players) do money = getPlayerMoney(v) end end Link to comment
Simple0x47 Posted June 21, 2016 Share Posted June 21, 2016 Players money stored in a table. p_money = { } function checkMoney(team) local players = getPlayersInTeam(team) for i = 1, #players do local v = players[i] p_money[i] = getPlayerMoney(v) end 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