#4

pawn Код:
forward split(const strsrc[], strdest[][], delimiter);
public 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;
}
Reply


Messages In This Thread
EROR - by 3RoR - 27.05.2012, 14:54
Re: EROR - by Edward156 - 27.05.2012, 15:06
Re: EROR - by justinnater - 27.05.2012, 15:06
Re: EROR - by ViniBorn - 27.05.2012, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)