View Single Post
naris
AlliedModders Donor
Join Date: Dec 2006
Old 01-27-2011 , 16:56   Re: SMLIB 0.9 BETA (266 Function Stocks)
Reply With Quote #17

This function really should have and use the maxlen parameter mentioned in the comment, that is not present in the actual function, instead of the literal 2147483647!

PHP Code:
/**
 * Removes a list of strings from a string.
 *
 * @param buffer            Input/Ourput buffer.
 * @param maxlen            Max size of buffer.
 * @param removeList        A list of strings which should be removed from buffer.
 * @param size                Number of Strings in the List.
 * @noreturn
 */
stock String_RemoveList(String:buffer[], String:removeList[][], sizebool:caseSensitive=false)
{    
    for (new 
i=0sizei++) {
        
ReplaceString(buffer2147483647removeList[i], ""caseSensitive);
    }

naris is offline