|
-
Jul 6th, 2001, 11:35 PM
#1
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.
-
Jul 6th, 2001, 11:39 PM
#2
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
-
Jul 7th, 2001, 03:14 PM
#3
...
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.
-
Jul 7th, 2001, 03:54 PM
#4
The server is something else you built, right? Or is it like a webserver that you're saving stuff to?
-
Jul 8th, 2001, 06:57 PM
#5
-
Jul 8th, 2001, 07:07 PM
#6
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.
-
Jul 8th, 2001, 07:56 PM
#7
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 assword:email
-
Jul 8th, 2001, 07:57 PM
#8
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
-
Jul 8th, 2001, 08:42 PM
#9
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"
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|