NewWars 875 Posted June 22, 2015 Boas Pessoal. Como sempre, menos string, mais objectividade(palavras do governo xD) Esta função serve para obter o proximo index de uma table, é util para quem usa index da table como level ou assim do genero... Ca vai: function GetNextIndex(gTable, realIndex) keysTbl = {} for k, v in pairs(gTable) do table.insert(keysTbl, k) end table.sort(keysTbl) for i = 1, #(keysTbl) do if keysTbl[i] == realIndex then return keysTbl[i+1] or 0 end end return 0 end Cumprimentos. 3 Slender_Man, xXBoyDarkXx and nagatto reacted to this Share this post Link to post Share on other sites
xXBoyDarkXx 328 Posted June 22, 2015 Faz um sistema de lojas offline ou o sistemas de faixas <.< Share this post Link to post Share on other sites
☆♕ CabrinhaSexy ♕☆ 738 Posted June 22, 2015 Faz um sistema de lojas offline ou o sistemas de faixas <.< LOL xD e achas mm que isso se partilha aqui no forum xD Share this post Link to post Share on other sites
xXBoyDarkXx 328 Posted June 22, 2015 O NovaGuerras é um gajo simpático Share this post Link to post Share on other sites
NewWars 875 Posted June 24, 2015 O NovaGuerras é um gajo simpático Simpatico ou não, sabes que não tenho sistemas oficiais nem pubs, e o que tenho meu e posso partilhar, eu venho aqui e partilho. Cumprimentos. Share this post Link to post Share on other sites
Tyler Durden 556 Posted June 24, 2015 Faz um sistema de lojas offline ou o sistemas de faixas <.< Ele não é capaz. shots fired Share this post Link to post Share on other sites
'PACI 2,317 Posted June 24, 2015 Tens a func mal escrita. Não é. #(table) é #table. Coisa q só funciona em lua 5.x, x>1. Lua do metin é 5.0, logo deves usar table.getn(table). Share this post Link to post Share on other sites
Slender_Man 173 Posted June 24, 2015 Para que serve ? já agora bom post obrigado Share this post Link to post Share on other sites