Jump to content

Search the Community

Showing results for tags 'array'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • A Cidade OTBR
    • OTServ Brasil
    • Atendimento
    • Taverna
  • Projetos Open Source
    • Canary
    • OTClient Redemption
    • MyAAC
  • OpenTibia
    • Notícias e Discussões
    • Suporte - Dúvidas, Bugs, Erros
    • Downloads
    • Tutoriais
    • Show-Off
  • Outros
    • Design

Found 1 result

  1. table.maxValue(array)

    Bom como eu participo do grupo de suporte e um cara pediu isso vim trazer aqui pra vocês. Bom uso =) function table.maxValue(array) t = {} for _, check in pairs(array) do if type(check) == "number" then table.insert(t, check) end end table.sort(t, function(a, return a > b end) return t[1] end Ao printar o valor retornado será o maior da tabela sendo assim:
×