So, this may be a terrible terrible setup because its my first time trying one. But I am trying to do map voting and when the player votes their userId gets added to a table with the map they voted. and to get the frequency I tried doing this
local function countFreq(tab) local freq = {}; for _, v in ipairs(tab) do freq[v] = (freq[v] or 0) + 1; end return freq; end
Always returns nil even if there is votes, and or duplicate votes.
Locked by EzraNehemiah_TF2
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?