Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion to add
#1
I figured since a lot of websites and other games do this, why not add it to MS4

Code:
If Len(Trim$(Name)) = Len(Trim$(Password)) Then
            Call AlertMsg(Index, "Your name and password must be different!")
            Exit Sub
        End If

Should work. Untested. 3 in the morning. You get the idea.
Reply
#2
Why would you want Len() ? Replace the len with lCase instead.
Reply
#3
William Wrote:Why would you want Len() ? Replace the len with lCase instead.
What's the difference other than the fact that lCase converts it to lower case?
Reply
#4
He's checking if the name and password are the same length first.
Reply
#5
Nean, what you are doing atm is that a account named: Morby and a password named: kol34 wont work. Len returns the length of the string as a integer. I think you mean that the account and password cant be the same name. Instead for the password you might wanna do this:

[code]if len(password)
Reply
#6
No, you had it right at first.

He means:

if lcase(name) = lcase(password) then
Call that alert sub thingy
exit sub
end if
Reply
#7
Yeah I know I was right. But both the ways I posted could be good actually. So that the name and password cant be the same name, and the password needs to be 7symbols or higher.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)