mysql loading fail.
#1

hello guys, I have this code. but I don't know sscanf and I want to other type.

pawn Код:
stock LoadPlayerInfo(iPlayer)
{
    new
        Query[700];

    if(mysql_fetch_row(Query))
    {
        sscanf(Query, "e<p<|>s[24]s[35]ddddfffd>", PVar[iPlayer]);
        mysql_free_result();
    }
    return 1;
}
pawn Код:
enum _PSTATS
{
    pLayaName[24],
    pPassword[35],
    pKills,
    pDeaths,
    pMoney,
    pLevel,
    Float:pLastX,
    Float:pLastY,
    Float:pLastZ,
    pInt // Add more info
}
new PVar[MAX_PLAYERS][_PSTATS];

but I want:

pawn Код:
stock LoadPlayerInfo(iPlayer)
{
    new
        Query[700];

    if(mysql_fetch_row(Query))
    {
        //example
        pKills[iPlayer] = xxx[1] ?

        mysql_free_result();
    }
    return 1;
}
so I want to read one,one not all.
Reply
#2

it is current
Reply
#3

help me....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)