Too big array?
#3

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
a) Do you receive any warnings upon compiling the script?

b) Show us your "explode" function.

Wow, that was fast.

Код:
Header size:          25716 bytes
Code size:          2269044 bytes
Data size:          3626860 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 5938004 bytes
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
Too big array? - by SKAzini - 08.12.2013, 15:18
Re: Too big array? - by Emmet_ - 08.12.2013, 15:19
Re: Too big array? - by SKAzini - 08.12.2013, 15:26
Re: Too big array? - by Emmet_ - 08.12.2013, 15:31
Re: Too big array? - by SKAzini - 08.12.2013, 15:37
AW: Too big array? - by Nero_3D - 08.12.2013, 15:53
Re: AW: Too big array? - by Emmet_ - 08.12.2013, 16:03
Re: AW: Too big array? - by SKAzini - 08.12.2013, 16:09
Re: Too big array? - by Emmet_ - 08.12.2013, 16:16
Re: Too big array? - by SKAzini - 08.12.2013, 16:21

Forum Jump:


Users browsing this thread: 1 Guest(s)