Ir para conteúdo

Featured Replies

Postado

estava tentando fazer um bot e  como so novo n sei direito e estava dando esse erro agradesso se me ajudarem

 

 

Warning 1 Namespace or type specified in the Imports 'Tibia' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
 
Warning 2 Namespace or type specified in the Imports 'Tibia.Objects' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
 
Warning 3 Namespace or type specified in the Imports 'Tibia.Util' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
 
 
 
Postado

Cara, seja mais específico, diga se está usando alguma biblioteca, etc!
Esse erro tá com cara que a biblioteca 'Tibia', não tem método público para poder você importar ela!

Mostra seu código aí que eu tento dar uma força pra você...

Postado
  • Autor
to usando pokemon api '-'
 
 
 
---------do primeiro form----------
 
Imports Tibia
Imports Tibia.Util
Imports Tibia.Objects
Imports Tibia.Constants
 
Public Class Form1
 
    Public c As Client
    Public p As Player
 
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        For Each cl In Client.GetClients
            ComboBox1.Items.Add(cl)
        Next
    End Sub
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Form2.Show()
    End Sub
End Class
 
 
 
 
--------segundo form--------
 
Imports Tibia
Imports Tibia.Util
Imports Tibia.Objects
Imports Tibia.Constants
 
Public Class Form2
    Dim c As Client
    Dim p As Player
 
    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        c = Form1.ComboBox1.SelectedItem
        If c.LoggedIn Then
            p = c.GetPlayer
            Form1.Hide()
        Else
            Me.Hide()
            MsgBox("You need choose your character")
        End If
    End Sub
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        c.Map.FullLightOn()
    End Sub
 
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        c.Map.FullLightOff()
    End Sub
End Class

Editado por guinaatz (veja o histórico de edições)

  • 3 weeks later...
Postado

você não importou o tibiaapi.dll  pelo que vejo...
 

Solution Explorer -> Nome do Projeto -> Botao direito -> Add References -> Procura sua tibiaapi.dll e Importa
 

Solution Explorer -> Nome do Projeto -> Botao direito -> Add -> Existing Item -> Procura sua tibiaapi.dll e Importa

 

 

Acredito que seja isso.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo