Raised This Month: $ Target: $400
 0% 

Check incase sensitivity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 09-25-2011 , 21:56   Check incase sensitivity
Reply With Quote #1

Hey guys.

I have a code that compares cells (memory, with ASCII VALUES inside), so for example: if (message[0] == link[0]).

Stuff like this, I hope you know what I mean.

How can I check (without knowing what im going to check, for example, random ascii LETTER values), the values as incase sensitivity? so if it'll be like:

if ('A' == 'a') then it'll return TRUE. like someway to compare random letters incase sensitivitly. How can I do that?
Diegorkable is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-25-2011 , 21:59   Re: Check incase sensitivity
Reply With Quote #2

See tolower and equali

PHP Code:
//For individual characters
if ( tolowerchar1 ) == tolowerchar2 ) )

//For strings
if ( equalistring1 string2 ) ) 
__________________

Last edited by Bugsy; 09-25-2011 at 22:14.
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-25-2011 , 23:33   Re: Check incase sensitivity
Reply With Quote #3

case insensitivity

Sorry, but I just had to say it .
__________________
fysiks is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-25-2011 , 23:38   Re: Check incase sensitivity
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
case insensitivity

Sorry, but I just had to say it .
unless hes talking in case its sensitive
Doc-Holiday is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-25-2011 , 23:38   Re: Check incase sensitivity
Reply With Quote #5

Quote:
Originally Posted by Doc-Holiday View Post
unless hes talking in case its sensitive
Doubt it.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-25-2011 , 23:39   Re: Check incase sensitivity
Reply With Quote #6

Quote:
Originally Posted by nikhilgupta345 View Post
Doubt it.
lol it was my +1.... arguing with fysiks is sometimes fun.. i usually learn something.
Doc-Holiday is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-25-2011 , 23:45   Re: Check incase sensitivity
Reply With Quote #7

LoL..
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode