Hello,
Today I was trying to search for a string that was passed in a dynamic array, but this native seems to not working properly.
This is the test function registered as a clcmd in plugin_init():
PHP Code:
public clcmd_test(id)
{
new arg[48];
read_argv(1, arg, charsmax(arg));
remove_quotes(arg);
client_print_color(id, print_chat, "Array Index: %d", ArrayFindString(g_aValues, arg));
return PLUGIN_HANDLED;
}
It is returning me every time value "-1" instead of array item index.
After some debugging, I tried to pass an exactly value from the Array, it retured -1.
Is this a native bug?
__________________