I'm trying to compile this plugin with latest snapshot compiler but I'm getting "symbol already defined" with ArrayFindString. However it seems to work with webcompiler (when i click "get plugin)".
Code:
utsounds.sma(1519) : error 021: symbol already defined: "ArrayFindString"
utsounds.sma(1526) : error 010: invalid function or declaration
utsounds.sma(1532) : error 010: invalid function or declaration
utsounds.sma(1534) : error 010: invalid function or declaration
utsounds.sma(1525) : warning 203: symbol is never used: "size"
utsounds.sma(1524) : warning 203: symbol is never used: "stringInArray"
The problematic function is:
PHP Code:
ArrayFindString(Array:array, const string[])
{
#if defined _DEBUG_CONFIG
server_print("string: \"%s\"", string);
#endif
new stringInArray[MAX_WEAPONNAME_LENGTH + 1];
new size = ArraySize(array);
for (new i = 0; i < size; i++)
{
ArrayGetString(array, i, stringInArray, charsmax(stringInArray));
#if defined _DEBUG_CONFIG
server_print("stringInArray: \"%s\"", stringInArray);
#endif
if (equal(stringInArray, string)) return i;
}
return -1;
}
It seems it has to be converted to the "new" function method... Any help?