Filter String for Textdraws
#2

Try this:
pawn Код:
stock CompareStringForTextdraw(text[])
{
    new
        strpos,
        invalidstr[3][2] = { "[", "]", "*" }
    ;        
    for (new x=0; x<sizeof(invalidstr); x++)
    {
        strpos = strfind(text, invalidstr[x], true);
        if(strpos != -1)
        {
            strdel(text, strpos, strpos+1);
        }
    }
    return text;
}
Reply


Messages In This Thread
Filter String for Textdraws - by Roel - 18.01.2013, 13:26
Re: Filter String for Textdraws - by LarzI - 18.01.2013, 13:56

Forum Jump:


Users browsing this thread: 1 Guest(s)