how to overwrite only 1 line with dini in users file
#4

i dont really understand, i have like


Код:
new string3[256];
			new playername3[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername3, sizeof(playername3));
			format(string3, sizeof(string3), "files/users/%s.ini", playername3);
			new File: hFile = fopen(string3, io_write);
 			if (hFile)
			{
			    new var[32];
			    
				
			
				format(var, 32, "Activated=%1\n",PlayerInfo[playerid][pActivated]);fwrite(hFile, var);
but, then it will only write into a file that line, or if i io_append then it adds the line at the end not overwrites the line :S
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)