Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Admin hear all/see all?
#4

The results are passed into the function you specify. Checkout mapveto.lua.

Code:
function mapveto_voteover(vote)
  local yesvotes = vote.picks[1]
  local total = vote.picks[1] + vote.picks[2]
  local nonvoters = table.Count(player.GetAll()) - total
  local yespercentage = (yesvotes / total) * 100
  local percentyes = tostring(math.floor(yespercentage)) .. "%"
  ...
end
Reply


Messages In This Thread
Admin hear all/see all? - by nicatronTg - Oct 17, 2010, 07:23 PM
Admin hear all/see all? - by Drunken F00l - Oct 17, 2010, 07:26 PM
Admin hear all/see all? - by nicatronTg - Oct 17, 2010, 07:35 PM
Admin hear all/see all? - by Drunken F00l - Oct 17, 2010, 07:36 PM
Admin hear all/see all? - by nicatronTg - Oct 17, 2010, 08:09 PM
Admin hear all/see all? - by larz - Dec 21, 2010, 02:52 PM
Admin hear all/see all? - by Drunken F00l - Dec 21, 2010, 10:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)