17.03.2012, 15:03
Haha, okay. You made the same mistake I did.
Remove the line
From the OnPlayerDisconnect.
What's happening is that the password is not being hashed when you are saving. So, when you log off your password is zero, and the udb_hash is not reading it as so. Tell me what happens. Goodluck
P.S
You forgot the colon between INI and File
Remove the line
pawn Код:
INI_WriteInt(File, "Pass",PlayerInfo[playerid][pPass]);
What's happening is that the password is not being hashed when you are saving. So, when you log off your password is zero, and the udb_hash is not reading it as so. Tell me what happens. Goodluck
P.S
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,data);
INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File, "Pass",PlayerInfo[playerid][pPass]);
INI_WriteInt(File, "Respect",PlayerInfo[playerid][pRespect]);
INI_WriteInt(File, "Money",PlayerInfo[playerid][pCash]);
INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File, "Vip",PlayerInfo[playerid][pVip]);
INI_WriteInt(File, "FirstJoined", PlayerInfo[playerid][pFirstJoined]);
INI_WriteInt(File, "Exp", PlayerInfo[playerid][pExp]);
INI_WriteInt(File, "Warns", PlayerInfo[playerid][pWarns]);
INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted]);
INI_WriteInt(File, "MuteTime", PlayerInfo[playerid][pMuteTime]);
INI_Close(File);