Player email don't load - mysql
#1

Hello, my variables 'pEmail, pIp, and pDataReg' aren't loading.

Check:

pawn Код:
enum rick_p
{
    pLayaName[24],
    pPassword[35],
    pMatou,
    pMorreu,
    pDinheiro,
    pAdmin,
    Float:pPosX,
    Float:pPosY,
    Float:pPosZ,
    pInt,
    pSkin,
    pBanco,
    pLevel,
    pTut,
    pRespeito,
    pTime,
    pCargo,
    pEmprego,
    pLogado,
    pDonate,
    pCarro,
    pCarro2,
    pCarro3,
    // Agora й a parte do char ,
    pSexo,
    pIdade,
    pEtnia,
    pOlhos,
    pFamiliaID,
    pDataReg[40],
    pIP[25],
    pEmail[128],

}
new pInfo[MAX_PLAYERS][rick_p];

//Load
if(mysql_fetch_row(Query))
    {
        sscanf(Query, "e<p<|>s[24]s[35]ddddfffddddddddddddddddddds[40]s[25]s[128]>", pInfo[playerid]);
        mysql_free_result();
    }
    SendFMessage(playerid, 0xEEEEEEAA, "Registrado: %s", pInfo[playerid][pDataReg]);
    SendFMessage(playerid, 0xEEEEEEAA, "Email: %s", pInfo[playerid][pEmail]);
    SendFMessage(playerid, 0xEEEEEEAA, "Ъltimo IP: %s", pInfo[playerid][pIP]);
phpmyadmin
Reply
#2

Do some debugging, print out the contents of the Query variable and paste the results here.
Reply
#3

The bug has found!
The error were in "carro, carro2, carro3" I don't create in the table xD
Thanks for you answer JaTochNietDan.
Reply


Forum Jump:


Users browsing this thread: