explode?
#6

pawn Код:
stock split(const strsrc[], strdest[][], delimiter)
{
    new i, li;
    new aNum;
    new len;
    while(i <= strlen(strsrc))
    {
        if(strsrc[i]==delimiter || i==strlen(strsrc))
        {
            len = strmid(strdest[aNum], strsrc, li, i, 128);
            strdest[aNum][len] = 0;
            li = i+1;
            aNum++;
        }
        i++;
    }
    return 1;
}
Taken from Godfather
Reply


Messages In This Thread
explode? - by FoxtrotZulu - 08.07.2010, 14:54
Re: explode? - by CAR - 08.07.2010, 14:55
Re: explode? - by Jeffry - 08.07.2010, 14:56
Re: explode? - by FoxtrotZulu - 08.07.2010, 15:01
Re: explode? - by Jeffry - 08.07.2010, 15:06
Re: explode? - by MadeMan - 08.07.2010, 15:16
Re: explode? - by Pghpunkid - 11.02.2011, 08:26

Forum Jump:


Users browsing this thread: 2 Guest(s)