AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   String check (https://forums.alliedmods.net/showthread.php?t=295389)

Airkish 03-24-2017 13:31

String check
 
How to check if string contains a part of text?

For example:
String = "I love this server"

How to check if it contains "server"?

EFFx 03-24-2017 13:36

Re: String check
 
PHP Code:

if(containi(szString"server") != -1


Airkish 03-24-2017 13:54

Re: String check
 
Quote:

Originally Posted by EFFx (Post 2506380)
PHP Code:

if(containi(szString"server") != -1


Thanks m8, works fine. By the way can you look up at my deagle round request, still not solved that one.

EFFx 03-24-2017 13:58

Re: String check
 
yep.


All times are GMT -4. The time now is 17:55.

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