Raised This Month: $ Target: $400
 0% 

ArrayFindString Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-14-2021 , 10:12   Re: ArrayFindString Issue
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
This has been reported here but in the context of this being a bug of the original function. I personally agree with this being a bug for this function as opposed to a feature request to be added.
I don't know if I would call it a bug, but it certainly is not intuitive. In the example provided by op, I would expect to get -1, not 0.
At this point, the functionality can not be changed(to keep backwards compatibility), but a new argument shoule be added to control how the string is matched.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-14-2021 , 20:27   Re: ArrayFindString Issue
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
At this point, the functionality can not be changed(to keep backwards compatibility)
I certainly understand the argument but you could also argue that 1.9.0 has never actually been "released" and therefore people cant necessarily expect things not to change .
__________________
fysiks 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 11:30.


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