INI DATA AREN'T SAVE! :(
#1

The problem is : all datas are save without "PAROLA (mean password in romanian language) " why ?


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);
Why doesen't work to save the pass ?
Reply
#2

Perhaps, if you are hashing the passwords, the string to put it into isn't long enough.
Reply
#3

it's not hashed is text ! example pass : ******21
Reply
#4

Is PlayerInfo[playerid][pKey] a string?
Reply
#5

Cauta pKey si primu lucru ce iti da scriel in post
Reply
#6

Make sure you have folders in scriptfiles which are required.
Reply
#7

EN : Done , fixed by me.
RO: Gata , l-am fixat eu singur.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)