Me be trippin' with errors...

Discussion in 'Code Snippets and Tutorials' started by Fexxel, Mar 19, 2009.

  1. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    Code (Text):
    1. Error   1   'lblStatus' is not a member of 'NeoLogin___Updated.fmrNeoLogin'.   
    2. Error   2   Name 'txtNFUser' is not declared.  
    3. Error   3   Name 'txtNFPass' is not declared.  
    4. Error   4   'lblStatus' is not a member of 'NeoLogin___Updated.fmrNeoLogin'.   
    5. Error   5   'lblStatus' is not a member of 'NeoLogin___Updated.fmrNeoLogin'.   
    6. Error   6   'lblStatus' is not a member of 'NeoLogin___Updated.fmrNeoLogin'.   
    7. Error   7   ')' expected.          
    What the heck do any of those mean?
    When I double click "txtNFUser is not declared" and the txtNFpass one, it brings me to this:
    Code (Text):
    1. Dim strReturn As String = Wrapper.Request("GET", "http://www.neofriends.net/auth.php?username=" & txtNFUser.Text & "&password=" & txtNFPass.Text & "&program=" & ProgID, "http://www.neofriends.net/")
    2.  
    The syntax error... I don't get it. When I click it, it highlights the second "/" in http://
    Code (Text):
    1. Dim w As New TCPWrapper
    2. Dim strhtml As String = w.request(http:[b]/[/b]/www.neopets.com/objects.phtml, http:[b]/[/b]/www.neopets.com/index.phtml)
    Bold=underlined red
    Just wondering about all this stuff. I don't get it lol.
    If anyone could help that'd be great. I don't understand this error stuff.
    EDIT: Remembered the Refer thing that Tharoux taught me, error 10 is gone :)
    Now I just have 9 left...
    Second edit: Just fixed Errors 8 and 9. Forgot to add two "s
     
  2. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    You DON'T have a label named lblstatus.
    You're logging all action in a list named lstLog (error 1,4,5,6)

    line 2-3: you don't have a textbox with those name. you have 2 choices. Create them or hardcode those. Usually, people needs to input their nf user and pass in a textbox and that would be it.
    line 7: pretty sure you forgot a ".
    solving this will probably solve the error 8-9.

    You will have a last issue to adress. Right now, even if the person is not authorized or not logged in into neopets, he can still click everything. You should disable the "pwnage" button and reactivate it if the person is authorized and logged in to neopets.
     
  3. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    How exactly do I disable the pwnage button?
    Oh, by the way, I haven't put in the authorization yet lol. I don't have anything to put in because I don't know how to lol. Are the NFpass and NFuser there for the authorization? If so, well, I didn't put them there lol.
    Should I just delete the lblstatus code line?
    Oh, and for number 7. I don't have anything missing... I put all the "s in for number 8 and 9.
    this is the text on #7:
    Code (Text):
    1. w.Request("http://www.neopets.com/objects.phtml", "http://www.neopets.com/index.phtml")
    I didn't forget anything.. At least I don't think.
     
  4. tharoux

    tharoux Level IV

    Joined:
    Dec 30, 2006
    Messages:
    2,733
    Likes Received:
    126
    Location:
    In front of my PC, Montreal
    W.request("GET",url, referer)
    You did forget something ;)

    and for the lblstatus, check in my login function and use the lstlog.items.add instead.
     
  5. Fexxel

    Fexxel Level IV

    Joined:
    Jan 28, 2009
    Messages:
    959
    Likes Received:
    26
    1. Ahh! Thats what I forgot xD
    2. Oh, I renamed 1stlog to log.. xD Uh, when I try to change it back to 1stlog it says "invalid value"... How to fix?