Mirage Source http://miragesource.net/forums/ |
|
Suggestion to add http://miragesource.net/forums/viewtopic.php?f=193&t=4705 |
Page 1 of 1 |
Author: | Nean [ Fri Nov 07, 2008 9:46 am ] |
Post subject: | Suggestion to add |
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. |
Author: | William [ Fri Nov 07, 2008 10:26 am ] |
Post subject: | Re: Suggestion to add |
Why would you want Len() ? Replace the len with lCase instead. |
Author: | Nean [ Fri Nov 07, 2008 3:19 pm ] |
Post subject: | Re: Suggestion to add |
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? |
Author: | GIAKEN [ Fri Nov 07, 2008 8:48 pm ] |
Post subject: | Re: Suggestion to add |
He's checking if the name and password are the same length first. |
Author: | William [ Fri Nov 07, 2008 11:04 pm ] |
Post subject: | Re: Suggestion to add |
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) <7 then
msgbox "password needs to be 7 symbols or longer" end if |
Author: | Matt [ Sat Nov 08, 2008 3:34 am ] |
Post subject: | Re: Suggestion to add |
No, you had it right at first. He means: if lcase(name) = lcase(password) then Call that alert sub thingy exit sub end if |
Author: | William [ Sat Nov 08, 2008 3:15 pm ] |
Post subject: | Re: Suggestion to add |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |