Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VB6 HELP

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
coder sal
Master Cheater
Reputation: 0

Joined: 11 May 2007
Posts: 304

PostPosted: Mon Nov 12, 2007 12:08 pm    Post subject: VB6 HELP Reply with quote

I'm trying to create a telnet hacking game for the fun of it but I keep getting errors whats wrong with this code?
Code:
Private Sub Command1_Click()
If Text3.Text = "12.450.455.99" & Text4.Text = "21" & Text1.Text = "adminroot" Then
Timer1.Enabled = True
Else
MsgBox "Error."
On Error Resume Next
End If
End Sub

+rep to anyone who helps me with this Very Happy
Back to top
View user's profile Send private message
XxOsirisxX
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Oct 2006
Posts: 1597

PostPosted: Mon Nov 12, 2007 12:17 pm    Post subject: Reply with quote

Iono what you means that you're doing..

But & is wrong used.. & is used to make a underline to buttons at caption, and also as code to make a.. well.. iono know to explain it, like a "bracket" between words.

instead of & use "And"

_________________

Back to top
View user's profile Send private message
coder sal
Master Cheater
Reputation: 0

Joined: 11 May 2007
Posts: 304

PostPosted: Mon Nov 12, 2007 12:26 pm    Post subject: Reply with quote

Thnx Very Happy +rep to you lol such a simple thing I didn't think of.
Code:
Private Sub Command1_Click()
If Text3.Text = "12.450.455.99" And Text4.Text = "21" And Text1.Text = "adminroot" Then
Timer1.Enabled = True
Else
MsgBox "Error."
On Error Resume Next
End If
End Sub
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites