Rank system working

This commit is contained in:
Cooldude2606 committed 2017-12-10 19:17:16 +00:00
1 parent 8f5bc8a424
commit 6b409f7cbe
9 files changed
+320 -43

No files matched your search

+2 -2
View File
@@ -490,8 +490,8 @@ end
-- table.autokey(tbl,'f') -- return 1
function table.autokey(tbl,str)
local _return = {}
for key,value in pairs(keys) do
if string.contains(string.lower(string),string.lower(key)) then table.insert(_return,value) end
for key,value in pairs(tbl) do
if string.contains(string.lower(str),string.lower(key)) then table.insert(_return,value) end
end
return _return[1] or false
end