Jump to content

Search the Community

Showing results for tags 'getresult'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 1 result

  1. Estou tentando usar esse script em uma talkaction: function onSay(cid, words, param) local coisas = db.getResult("SELECT `level` FROM `global`.`players` WHERE `name` = 'Master Pig';") player_level = coisas:getDataInt("level") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Name: " .. player_level) end ( Já tentei trocar o argumento da função onSay de cid para player, mas o erro continuou) tentei simplificar o máximo possivel, mas o erro persiste Lua Script Error: [TalkAction Interface] data/talkactions/scripts/teste.lua:onSay data/talkactions/scripts/teste.lua:3: attempt to call field 'getResult' (a nil value) stack traceback: [C]: in function 'getResult' data/talkactions/scripts/teste.lua:3: in function <data/talkactions/scripts/teste.lua:1> Quando eu jogo a Query no phpmyadmin ela da o retorno certo. Estou Usando o TFS 1.0 para 10.82
×
×
  • Create New...