SA-MP Forums Archive
Player email don't load - mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player email don't load - mysql (/showthread.php?tid=294734)



Player email don't load - mysql - Ricop522 - 03.11.2011

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



Re: Player email don't load - mysql - JaTochNietDan - 03.11.2011

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


Re: Player email don't load - mysql - Ricop522 - 03.11.2011

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