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

im using dini to store my users, but i need a code that will write only 1 certain line over, not all the lines what are in user file.
Reply
#2

dini_Set(file, "NameOfSetting", "StringToBeSet");
or
dini_IntSet(file, "NumberofSetting", NumberToSet);
Reply
#3

Edit: Nvm
Reply
#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
#5

anybody please?
Reply
#6

bump, anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)