View Single Post
08-04-17, 06:00 AM   #7
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
Originally Posted by Banknorris View Post
Code:
local tableC = {}
for k,v in pairs(tableB)
	if tableA[v] then
		tableC[k] = v
	end
end
table.sort(tableC)
Thanks for reply!

I trying with ur code and cant be good.
Lua Code:
  1. local tableC = {}
  2. for k,v in pairs(BangCharKills) do tableC[#tableC + 1] = k end
  3.     if hates[v] then
  4.         tableC[k] = v
  5.     end
  6. table.sort(tableC)
  7.     --for i = 1, #tableC do print(tableC[i]) end
  8.     print(tableC[1])
  9. end
  Reply With Quote