AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [Solved] StrContains - Ignore Lower Upper chars? (https://forums.alliedmods.net/showthread.php?t=246240)

HSFighter 08-14-2014 07:30

[Solved] StrContains - Ignore Lower Upper chars?
 
Hi all,

will "StrContains" make difference between Lower Upper chars?
PHP Code:

if (StrContains(str1str2false) != -1
{
    
// do stuff...


Thanks for the effort.

kossolax 08-14-2014 07:34

Re: StrContains - Ignore Lower Upper chars?
 
Assuming the definition: https://sm.alliedmods.net/api/index....d=show&id=615&
"Hello" is equal to "hello", because you passed false as 3rd argument.

HSFighter 08-14-2014 07:43

Re: StrContains - Ignore Lower Upper chars?
 
Quote:

Originally Posted by kossolax (Post 2183851)
"Hello" is equal to "hello", because you passed false as 3rd argument

This is exactly what i need. :bee:
Then does not have to use CharToLower.

THANK YOU kossolax


All times are GMT -4. The time now is 12:37.

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