Editing strreplace stock
#2

pawn Код:
strreplace(string[], find[], replace[])
{
    new stringFound = strfind(string, find);
    if(stringFound > -1)
    {
        strdel(string, stringFound, strlen(find));
        strins(string, replace, stringFound);
    }
    return string;
}
Untested since I just wrote it up, not sure if it'll work.
Reply


Messages In This Thread
Editing strreplace stock - by zDevon - 13.06.2012, 00:20
Re: Editing strreplace stock - by SuperViper - 13.06.2012, 00:31
Re: Editing strreplace stock - by Jonny5 - 13.06.2012, 00:35
Re: Editing strreplace stock - by zDevon - 13.06.2012, 00:35
Re: Editing strreplace stock - by Kar - 13.06.2012, 00:38
Re: Editing strreplace stock - by JaTochNietDan - 13.06.2012, 00:40
Re: Editing strreplace stock - by zDevon - 13.06.2012, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)