Help fread using sscanf
#4

Use this to change commas to space:
pawn Код:
// credits to whoever made this
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;
}
You can save anything you want with commas and than use sscanf after this.
Reply


Messages In This Thread
Help fread using sscanf - by FailerZ - 21.11.2014, 20:40
Re: Help fread using sscanf - by dominik523 - 21.11.2014, 20:43
Re: Help fread using sscanf - by FailerZ - 21.11.2014, 20:45
Re: Help fread using sscanf - by dominik523 - 21.11.2014, 20:48
Re: Help fread using sscanf - by Vince - 21.11.2014, 21:53
Re: Help fread using sscanf - by dominik523 - 22.11.2014, 08:38
Re: Help fread using sscanf - by dominik523 - 24.11.2014, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)