Guest User


a guest
Dec 24th, 2012
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Count the number of times a value occurs in a table
  2. function table_count(tt, item)
  3.   local count
  4.   count = 0
  5.   for ii,xx in pairs(tt) do
  6.     if item == xx then count = count + 1 end
  7.   end
  8.   return count
  9. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.