One error while compiling
#5

Quote:
Originally Posted by iZN
Посмотреть сообщение
Ever heard about debugging? Use printf() to see if the password is printing.
I've tried it. But in the console the password is printed, but not in the user file


The problem is in
Код:
INI_WriteString(File,"Password", passita); //udb INI_WriteInt(File,"Password",udb_hash(password));
:S

Can anyone tell me why?
pawn Код:
function OnPlayerRegister(playerid, inputtext[])
{
    if(IsPlayerConnected(playerid))
    {
        new passita[24];
        new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        format(passita, sizeof(passita), "%s", inputtext);
        printf(passita);
        INI_WriteString(File,"Password", passita); //udb INI_WriteInt(File,"Password",udb_hash(password));
        INI_Close(File);
        TotalRegister++;
        SendClientMessageEx(playerid, COLOR_YELLOW, "Cuenta registrada, se ha iniciado sesiуn automбticamente.");
        OnPlayerLogin(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
My password isn't stored - by Kemula - 10.06.2014, 22:15
Re: One error while compiling - by Jefff - 10.06.2014, 22:20
Password isn't stored - by Kemula - 10.06.2014, 22:38
Re: One error while compiling - by iZN - 10.06.2014, 22:42
Respuesta: Re: One error while compiling - by Kemula - 10.06.2014, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)