Array and MySQL
#6

try that

pawn Код:
new row[3][30];
for(new i, y, c; result[i] != EOS; i++)
{
    if(result[i] == '\r' || result[i] == '\n')
    {
        if(c)
        {
            y++;
            if(y == sizeof row) break;
            c = 0;
        }
        continue;
    }
    row[y][c] = result[i], c++;
}
Reply


Messages In This Thread
Array and MySQL - by KingArthur - 05.07.2009, 18:40
Re: Array and MySQL - by Nero_3D - 05.07.2009, 18:58
Re: Array and MySQL - by KingArthur - 05.07.2009, 19:07
Re: Array and MySQL - by Nero_3D - 05.07.2009, 19:42
Re: Array and MySQL - by KingArthur - 05.07.2009, 19:48
Re: Array and MySQL - by Nero_3D - 05.07.2009, 20:10
Re: Array and MySQL - by KingArthur - 05.07.2009, 20:24
Re: Array and MySQL - by Nero_3D - 05.07.2009, 20:52
Re: Array and MySQL - by KingArthur - 05.07.2009, 21:12
Re: Array and MySQL - by Nero_3D - 06.07.2009, 12:20

Forum Jump:


Users browsing this thread: 1 Guest(s)