Header size[SOLVED]
#1

Код:
Header size:          12180 bytes
Code size:          1900824 bytes
Data size:          3569732 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4112 cells (16448 bytes)
Total requirements: 5499120 bytes
Код:
if(dialogid == 230)
{
   if(response)
   {
	  if(listitem == 0)
	  {
		 new string[200], tei[512], lig[512], aps[512], sei[256];
		 new File:tfile = fopen("Darbai/Policija/Darbuotojai.txt", io_read);
		 fread(tfile, tei);
		 fclose(tfile);
		 tfile = fopen("Darbai/Ligonine/Darbuotojai.txt", io_read);
		 fread(tfile, lig);
		 fclose(tfile);
		 tfile = fopen("Darbai/Apsauga/Darbuotojai.txt", io_read);
		 fread(tfile, aps);
		 fclose(tfile);
		 tfile = fopen("Valdziossarasas.txt", io_read);
		 fread(tfile, sei);
		 fclose(tfile);
		 format(string, 200, "Valdюios balansas: %iLT\nTeisлsaugoje dirba: %i юmoniш\nTeisлsaugos pelnas: %iLT\nLigoninлje dirba: %i юmoniш\nLigoninлs pelnas: %iLT\nApsaugoje dirba: %i юmoniш\nApsaugos pelnas: %iLT\nSeimo nariais dirba: %i юmoniш", Valdzia[Pelnas], CountChars('|', tei), PolPelnas, CountChars('|', lig), MedPelnas, CountChars('|', aps), ApsPelnas, CountChars('i', sei));
		 ShowPlayerDialog(playerid, FREE_DIALOG, DIALOG_STYLE_MSGBOX, "Apie valdюiа", string, "Gerai");
		 return 1;
	  }
   }
   return 1;
}
How to get rid of that Header size and other stuff?
Reply
#2

Solved. 512 string size is too large
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)