Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
[HELP] Recconect
Results 1 to 10 of 10

Thread: [HELP] Recconect

  1. #1

    [HELP] Recconect

    I try make a recconect, but appear an error.

    my code:
    [code="vbnet"] Private Sub TimerRecconect_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TimerRecconect.Tick
    If c.LoggedIn = False Then
    c.Login.Login(Form3.account.Text, Form3.password.Text, Form3.character.Text)
    End If[/code]

    In form3 (Recconecter) have 3 textbox that you put account, password and character, and you click in Enable Button that execute Form2.TimerRecconect.Start() and Form3.Hide()

    But in game when I start recconecter after the credentials (acc, pass, char)
    Give a error in (If c.LoggedIn = False Then)
    Error: "Object reference not set to an instance of an object."
    TibiaKing.com

  2. #2
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: [HELP] Recconect

    Use the Visual Studio debugger (I assume you use Visual Studio) and see if c is defined

  3. #3

    RE: [HELP] Recconect

    c is Defined.

    Public c As Client
    c = Form1.ComboBox1.SelectedItem
    TibiaKing.com

  4. #4

    RE: [HELP] Recconect

    @UP
    please help me, nothing that I try work.
    TibiaKing.com

  5. #5
    Senior Member
    Join Date
    Aug 2010
    Posts
    532

    RE: [HELP] Recconect

    c MUST to be the Object Client, so you are doing wrong.

    I guess that you use TibiaAPI so add on the Load of your program:

    C#
    [code=csharp] Tibia.Objects.Client c = Tibia.Util.ClientChooser.ShowBox();[/code]

  6. #6

    RE: [HELP] Recconect

    maozao, qndo te vi fiquei pensando (eu já vi esse nick em algum lugar) mas não me vinha de onde, ai hoje eu lembrei: te vi no fórum do visual basic no msdn (microsoft) perguntando como fazer um scripter interno estilo do ng huahuaua

    vou testar aqui e edito
    ----
    i'll try here and edit after. thx
    TibiaKing.com

  7. #7

    RE: [HELP] Recconect

    the error continue...
    :/
    help :B
    TibiaKing.com

  8. #8
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: [HELP] Recconect

    is c defined as a client object?

  9. #9
    Senior Member
    Join Date
    Aug 2010
    Posts
    532

    RE: [HELP] Recconect

    Quote Originally Posted by Renato Ribeiro
    maozao, qndo te vi fiquei pensando (eu já vi esse nick em algum lugar) mas não me vinha de onde, ai hoje eu lembrei: te vi no fórum do visual basic no msdn (microsoft) perguntando como fazer um scripter interno estilo do ng huahuaua

    vou testar aqui e edito
    ----
    i'll try here and edit after. thx
    Não uso VB, acho que vocÊ ta confundindo =)

    Set a breakpoint on that function and check where is the error.

  10. #10

    RE: [HELP] Recconect

    Não era visual basic, era C# acho, mas eu lembro que o nick era maozao.
    E eu vi outros tópicos seus onde tinha coisas do TibiaAPI, no fórum... =p

    Se não for você é muita coincidência. Não acha?
    TibiaKing.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •