
08-23-2006, 03:54 AM
|
|
Cookie Monster. :3
|
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
|
|
Case sensitivity in strings
|
Okay, so after testing around I've found out what Zodiac's problem is.
Players are able to change the capitals in their accounts.
I can log in with my account as yen, Yen, yEn, YeN, yEN, or YEn. All of them will work.
If I have something like: this.array = {"Yen","Stefan","(npc-server)"} and I do this.array.index(player.account), unless my account is Yen it will return -1
If my account is yEn, it will return a -1.
This is bugging up parties, trade, ect.
I can fix it by converting all accounts to lowercase when they're received, but is it mean't to act like this? |
|
|
|