sscanf not working with mysql
#9

Meybe this work:

pawn Код:
stock MySQLLoadVariables(playerid)
{
    new
        Query[500],
        Name[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
    format(Query,sizeof(Query),"SELECT * FROM `users` WHERE `username` = '%s'",Name);
    mysql_query(Query);
    mysql_store_result();
   
    mysql_fetch_row_format(Query,"|");
   
    sscanf(Query, "p<|>dddddddddddd",PlayerInfo[playerid][pCash],PlayerInfo[playerid][pAccount],PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pExp],PlayerInfo[playerid][gPupgrade],PlayerInfo[playerid][pKills],PlayerInfo[playerid][pGun1],PlayerInfo[playerid][pGun2],PlayerInfo[playerid][pGun3],PlayerInfo[playerid][pAmmo1],PlayerInfo[playerid][pAmmo2]);
    mysql_free_result();
}
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: 1 Guest(s)