07.03.2014, 01:25
The problem is : all datas are save without "PAROLA (mean password in romanian language) " why ?
Code:
OnPlayerRegister
Why doesen't work to save the pass ?
Code:
OnPlayerRegister
Код:
public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new string3[32]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "Conturi/%s.ini", playername3); new File: hFile = fopen(string3, io_write); if (hFile) { strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); new var[64]; format(var, 64, "[*] - Despre jucator\n");fwrite(hFile, var); format(var, 50, "Parola=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); format(var, 64, "Nivel=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 64, "Admin=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var); format(var, 64, "Donator=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var); format(var, 64, "Ore=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 64, "Inregistrare=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 64, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var); format(var, 64, "Mute=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 64, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 64, "Misiune=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var); format(var, 64, "Avertismente=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);