First one, loads good, other not?
#4

I forgot, here it is:

pawn Код:
explode(const sSource[], aExplode[][], const sDelimiter[] = " ", iVertices = sizeof aExplode, iLength = sizeof aExplode[]) // Created by Westie
{
    new
        iNode,
        iPointer,
        iPrevious = -1,
        iDelimiter = strlen(sDelimiter);

    while(iNode < iVertices)
    {
        iPointer = strfind(sSource, sDelimiter, false, iPointer);

        if(iPointer == -1)
        {
            strmid(aExplode[iNode], sSource, iPrevious, strlen(sSource), iLength);
            break;
        }
        else
        {
            strmid(aExplode[iNode], sSource, iPrevious, iPointer, iLength);
        }

        iPrevious = (iPointer += iDelimiter);
        ++iNode;
    }
    return iPrevious;
}
Reply


Messages In This Thread
First one, loads good, other not? - by wouter0100 - 16.09.2011, 22:44
Re: First one, loads good, other not? - by Tee - 16.09.2011, 23:16
Re: First one, loads good, other not? - by wouter0100 - 16.09.2011, 23:28
Re: First one, loads good, other not? - by Tee - 16.09.2011, 23:33
Re: First one, loads good, other not? - by wouter0100 - 16.09.2011, 23:39
Re: First one, loads good, other not? - by Tee - 16.09.2011, 23:47
Re: First one, loads good, other not? - by Steven82 - 17.09.2011, 01:43
Re: First one, loads good, other not? - by wouter0100 - 17.09.2011, 07:12

Forum Jump:


Users browsing this thread: 1 Guest(s)