searching string inside another string
Code:
if(strfind(data[Something], string) !== -1) {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))Tested it with !! too. AMXXi is 1.8.2 |
Re: searching string inside another string
Quote:
Quote:
|
Re: searching string inside another string
Quote:
Again not works i even did multiple checks Code:
if(strfind(data[something],string) != -1) || !strfind(data[something,string) || strfind(data[something],string) > 0 ) { |
Re: searching string inside another string
What ??? At least use the last amxx stable version which is 182 contain/i should return -1 on failure and greater than -1 on success
|
Re: searching string inside another string
Quote:
functions: strfind() contain() containi() |
Re: searching string inside another string
If it is bugged it would be already fixed on v182 I had never experienced any problem using them..
|
Re: searching string inside another string
Quote:
|
Re: searching string inside another string
Please show the full code. You're obviously doing something wrong.
PHP Code:
PHP Code:
PHP Code:
|
Re: searching string inside another string
Quote:
I've checked first how i put in array the flags then i see that it was wrong in native, i forgot to add param_convert(5), and there it happens that bug. So now it's fixed. It appears that is not a bug with function strfind. I fixed this problem. Thank you guys for assisting in the thread. |
| All times are GMT -4. The time now is 02:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.