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.
Printable View
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.
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
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.
The server is something else you built, right? Or is it like a webserver that you're saving stuff to?
Ya, I built the server.
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.
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
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
This should do it:
VB Code:
Dim sUserName As String Dim sPassWord As String Dim sEmailAddress As String Dim sWrite As String Dim nFF As Integer sUserName = "You" sPassWord = "pass" sEmailAddress = "[email protected]" sWrite = sUserName & ":" & sPassWord & ":" & sEmailAddress & vbCrLf nFF = FreeFile Open "C:\Documents and Settings\Dennis Wrenn\Desktop\username.txt" For Append As nFF Print #nFF, sWrite Close nFF