Raised This Month: $ Target: $400
 0% 

Solved searching string inside another string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
riste.kgb
Junior Member
Join Date: Oct 2019
Location: Macedonia, Bogdanci
Old 11-15-2019 , 05:47   searching string inside another string
Reply With Quote #1

Code:
if(strfind(data[Something], string) !== -1) {
return true;
} else {
return false;
}
It doesn't work.

Also contain, containi is not working properly. What's the point to exists these functions when they returns -1, and zero (which in if, while statements are false)

I want to search string inside another string, it can be 1 single char from that string or all strings.

equal and or equali will not work in my situation.

Code:
if(!(strfind(data[Something],string))
Will not work,because always returns 1 even if no string match
Tested it with !! too.

AMXXi is 1.8.2

Last edited by riste.kgb; 11-15-2019 at 08:19. Reason: excuse me, it was 1.8.2
riste.kgb is offline
 



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 02:44.


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