SA-MP Forums Archive
[ini] Case sensitive problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [ini] Case sensitive problem. (/showthread.php?tid=405343)



[ini] Case sensitive problem. - Kebab- - 06.01.2013

Hello users of SA:MP forums,
I'm having problems related to .ini and case sensitive. My registration and login system appears to be case sensitive, meaning that there can be two accounts under the same name, but different cases (caps and lowercase). For example, if someone had an account called John_Doe, they'll need to type the correct case sensitive in order to access their account and if someone else typed in john_doe, they'll be able to register a new account, however not access their files (brand new account) and it wouldn't delete the other account.

Less detail:
John_Doe exists and someone decides to register themselfs as john_doe, it will allow them because it's case sensitive.

Thankyou for those who attempted to help +rep.


Re: [ini] Case sensitive problem. - Sinner - 06.01.2013

Convert the inputtext and the fetched username to uppercase, then check if they are equal.


Re: [ini] Case sensitive problem. - Kebab- - 06.01.2013

Quote:
Originally Posted by Sinner
Посмотреть сообщение
Convert the inputtext and the fetched username to uppercase, then check if they are equal.
I'm sorry, but I'm kind of new to this whole Pawn thing. Could you please provide the codes and I'll convert it into my script? Thankyou.


Re: [ini] Case sensitive problem. - eesh - 06.01.2013

which ini system do you use?


Re: [ini] Case sensitive problem. - Vince - 06.01.2013

It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.


Re: [ini] Case sensitive problem. - Sinner - 06.01.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
I think he's talking about a login system. Players type in their name (+password?) and it checks the credentials based on that.


Re: [ini] Case sensitive problem. - Kebab- - 06.01.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
THankyou, that was the issue. Made myself sound like a right idiot. Simple mistake.

Quote:
Originally Posted by Sinner
Посмотреть сообщение
I think he's talking about a login system. Players type in their name (+password?) and it checks the credentials based on that.
Thankyou for trying to help me, but I've got this sorted. I didn't explain myself well enought. Once again, thanks.

Please close this thread.