SII House Problem
#1

(Sry for bad English! )
Hi all,
i am working on a house system with the SII Include.

Код:
stock SaveHouses()
{
	new string[256];
	if(INI_Open("Haus.cfg"))
	{
	  new house;
	  for(house = 0; house <= MAX_HOUSES; house++)
	  {
			format(string, 64, "eX=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][eX]);
			format(string, 64, "eY=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][eY]);
			format(string, 64, "eZ=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][eZ]);
			format(string, 64, "aX=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][aX]);
			format(string, 64, "aY=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][aY]);
			format(string, 64, "aZ=%d", house);
		 	INI_WriteFloat(string, HouseInfo[house][aZ]);
			format(string, 64, "Preis=%d", house);
		 	INI_WriteInt(string, HouseInfo[house][Preis]);
			format(string, 64, "Besitzer=%d", house);
			INI_ReadString(HouseInfo[house][Besitzer], string, 24);
			format(string, 64, "Vergeben=%d", house);
		 	INI_WriteInt(string, HouseInfo[house][Vergeben]);
			format(string, 64, "Mieter=%d", house);
		 	INI_WriteInt(string, HouseInfo[house][Mieter]);
			format(string, 64, "MaxMieter=%d", house);
		 	INI_WriteInt(string, HouseInfo[house][MaxMieter]);
			format(string, 64, "Miete=%d", house);
		 	INI_WriteInt(string, HouseInfo[house][Miete]);
	  }
	  INI_Save();
	  INI_Close();
	}
	return true;
}
When I start the server, created the Haus.cfg, but which is empty,
can someone help me, and why nothing is written to the file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)