explode?
#1

Is there an explode(); function for Pawn like in PHP?
I'm sure I saw one before.
Reply
#2

CreateExplosion
Reply
#3

CreateExplosion ?

EDIT: CAR was faster. ^^
Reply
#4

http://www.php.net/explode

x3
Reply
#5

Oh. That's something else. For what do you need it?
Reply
#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
#7

lol i just made an actual explode function. Differs a bit from split.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)