Raised This Month: $ Target: $400
 0% 

String check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 03-24-2017 , 13:31   String check
Reply With Quote #1

How to check if string contains a part of text?

For example:
String = "I love this server"

How to check if it contains "server"?
__________________
Airkish is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-24-2017 , 13:36   Re: String check
Reply With Quote #2

PHP Code:
if(containi(szString"server") != -1
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 03-24-2017 , 13:54   Re: String check
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
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.
__________________
Airkish is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-24-2017 , 13:58   Re: String check
Reply With Quote #4

yep.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
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 17:55.


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