10.06.2014, 22:53
Quote:
Ever heard about debugging? Use printf() to see if the password is printing.
|

The problem is in
Код:
INI_WriteString(File,"Password", passita); //udb INI_WriteInt(File,"Password",udb_hash(password));
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;
}