AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Compare strings library (https://forums.alliedmods.net/showthread.php?t=136182)

ghostdlr 08-23-2010 18:27

Compare strings library
 
Is there a library that implements this function ?

nikhilgupta345 08-23-2010 18:37

Re: Compare strings library
 
It's included in the amxmodx include.

Code:

if(equali(string1, string2))
{

//do this

}

or

Code:

if(containi(string1, string2))
{

//do this

}

You can use equal, equali, contain, or contani. the "i" at the end means case-insensitive, otherwise, obviously, it is.

equal: http://www.amxmodx.org/funcwiki.php?go=func&id=53
equali: http://www.amxmodx.org/funcwiki.php?...uali&go=search
contain:http://www.amxmodx.org/funcwiki.php?go=func&id=45
containi:http://www.amxmodx.org/funcwiki.php?...aini&go=search

fysiks 08-23-2010 19:15

Re: Compare strings library
 
string.inc


All times are GMT -4. The time now is 21:57.

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