performing case insensitive string compairs?...
Is there such a way to go about doing this in small?
|
:D, This would be better in Scripting Help.
Mod ... Move this please. |
Crud, I didn't even notice that I posted in wrong forum...=/
|
Just make them both lowercase and then compare them
|
is there an "lcase" function to turn it all lower case?
I'd like to do something like get_user_name (un) un = lcase(un) |
Quote:
|
equali() isn't the same as strcmpi(), which is real string comparison
|
which and how can you convert it to all lower case?...
This would be a great addition to amx if possible. For string compairs. Say I want to auto-kick all myg0t... anyone w/ Myg0t would get by, mYg0T, mYg0t, MYG0T would also get by...thats my problem. |
Quote:
|
Well, equali() returns true or false, and strcmpi() returns 0 if the two strings are the same, < 0 if the first string is less than the second string, and > 0 if the first string is greater than the second string.
(actual return values may vary by implementations, and I can't tell you what AMXX would've had since it simply doesn't have strcmpi()). |
| All times are GMT -4. The time now is 14:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.