Mirage Source

Free ORPG making software.
It is currently Mon May 20, 2024 4:56 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Suggestion to add
PostPosted: Fri Nov 07, 2008 9:46 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Suggestion to add
PostPosted: Fri Nov 07, 2008 10:26 am 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
Why would you want Len() ? Replace the len with lCase instead.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Suggestion to add
PostPosted: Fri Nov 07, 2008 3:19 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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?

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: Suggestion to add
PostPosted: Fri Nov 07, 2008 8:48 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
He's checking if the name and password are the same length first.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
 Post subject: Re: Suggestion to add
PostPosted: Fri Nov 07, 2008 11:04 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
 Post subject: Re: Suggestion to add
PostPosted: Sat Nov 08, 2008 3:34 am 
No, you had it right at first.

He means:

if lcase(name) = lcase(password) then
Call that alert sub thingy
exit sub
end if


Top
  
 
 Post subject: Re: Suggestion to add
PostPosted: Sat Nov 08, 2008 3:15 pm 
Offline
Community Leader
User avatar

Joined: Mon May 29, 2006 1:00 pm
Posts: 2538
Location: Sweden
Google Talk: johansson_tk@hotmail.com
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.

_________________
I'm on Facebook!My Youtube Channel Send me an email
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group