sscanf not working with mysql
#2

pawn Код:
while(mysql_fetch_row(result)) {
    new
        data[12];
    sscanf(result, "p<|>dddddddddddd", data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7],      data[8], data[9], data[10], data[11]);
    PlayerInfo[playerid][pCash] = data[0];
    PlayerInfo[playerid][pAccount] = data[1];
    PlayerInfo[playerid][pAdmin] = data[2];
    PlayerInfo[playerid][pLevel] = data[3];
    PlayerInfo[playerid][pExp] = data[4];
    PlayerInfo[playerid][gPupgrade] = data[5];
    PlayerInfo[playerid][pKills] = data[6];
    PlayerInfo[playerid][pGun1] = data[7];
    PlayerInfo[playerid][pGun2] = data[8];
    PlayerInfo[playerid][pGun3] = data[9];
    PlayerInfo[playerid][pAmmo1] = data[10];
    PlayerInfo[playerid][pAmmo2] = data[11];
}
Reply


Messages In This Thread
sscanf not working with mysql - by SaW_[VrTx] - 26.04.2011, 14:39
Re: sscanf not working with mysql - by Alby Fire - 26.04.2011, 14:56
Re: sscanf not working with mysql - by Aldo. - 26.04.2011, 15:29
Re: sscanf not working with mysql - by Alby Fire - 26.04.2011, 15:40
Re: sscanf not working with mysql - by [NoV]LaZ - 26.04.2011, 15:50
Re: sscanf not working with mysql - by MadeMan - 26.04.2011, 16:35
Re: sscanf not working with mysql - by JaTochNietDan - 26.04.2011, 16:37
Re: sscanf not working with mysql - by SaW_[VrTx] - 26.04.2011, 18:48
Re: sscanf not working with mysql - by Raimis_R - 26.04.2011, 18:55

Forum Jump:


Users browsing this thread: 3 Guest(s)