Results 1 to 9 of 9

Thread: Game Login

  1. #1
    carp
    Guest

    Game Login

    Hey peeps. I made a game, and its done, cept for the login. The login sends the command to the server and tells them if it is good or bad. I CANT GET IT TO WORK! Can someone make an example to tell me how to do this.

  2. #2
    denniswrenn
    Guest
    Why do you need to login? Is it multiplayer? How do you register? And finally, we need your existing code for the login system, before we can help you.

    -Dennis

  3. #3
    carp
    Guest

    Wink ...

    I know how i want to do the signup, And it works. I dont hvae code for the login anymore because i got frustraited and deleted it to start over, And i never started over because i failed the last 2 times i tried. I need the client to send the commands to the server, I know how to do that fine, But i dont know how i can get the server to read my commmands and respoind to them.

  4. #4
    denniswrenn
    Guest
    The server is something else you built, right? Or is it like a webserver that you're saving stuff to?

  5. #5
    carp
    Guest

    Yep

    Ya, I built the server.

  6. #6
    denniswrenn
    Guest
    Can you connect to the server?

    Are you using the Winsock control? If so, all you have to do is put your login checking code in the DataArrival event of the server's winsock control.

  7. #7
    carp
    Guest

    Git it

    Thanks I got it. But i ahve another probelm. I dont know how to save user names to a file, Can you help with that? I want it in this format: userassword:email

  8. #8
    carp
    Guest

    Git it

    Thanks I got it. But i ahve another probelm. I dont know how to save user names to a file, Can you help with that? I want it in this format: user: password:email

    Sorry about that, I put the P and then the : and it made it a smile, I want it like that w/o the space

  9. #9
    denniswrenn
    Guest
    This should do it:

    VB Code:
    1. Dim sUserName As String
    2.     Dim sPassWord As String
    3.     Dim sEmailAddress As String
    4.     Dim sWrite As String
    5.     Dim nFF As Integer
    6.    
    7.     sUserName = "You"
    8.     sPassWord = "pass"
    9.     sEmailAddress = "[email protected]"
    10.  
    11.     sWrite = sUserName & ":" & sPassWord & ":" & sEmailAddress & vbCrLf
    12.     nFF = FreeFile
    13.    
    14.     Open "C:\Documents and Settings\Dennis Wrenn\Desktop\username.txt" For Append As nFF
    15.         Print #nFF, sWrite
    16.     Close nFF

Posting Permissions

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



Click Here to Expand Forum to Full Width