fwrite and fread problems
#1

Alright so the basic code is something like this-..

Код:
if(!fexist("houses.cfg")) return 1;

	new
		szFileStr[1024],

sscanf(szFileStr, "p<|>iiis[24]ffffffffiiiiiiiiiiiiiiiiiffi",
			HouseInfo[iIndex][hOwned],
			HouseInfo[iIndex][hLevel],
			HouseInfo[iIndex][hHInteriorWorld],
			HouseInfo[iIndex][hOwner],
			HouseInfo[iIndex][hExteriorX],
			HouseInfo[iIndex][hExteriorY],
			HouseInfo[iIndex][hExteriorZ],
			HouseInfo[iIndex][hExteriorR],
			HouseInfo[iIndex][hInteriorX],
			HouseInfo[iIndex][hInteriorY],
			HouseInfo[iIndex][hInteriorZ],
			HouseInfo[iIndex][hInteriorR],
			HouseInfo[iIndex][hLock],
			HouseInfo[iIndex][hRentable],
			HouseInfo[iIndex][hRentFee],
			HouseInfo[iIndex][hValue],
			HouseInfo[iIndex][hSafeMoney],
			HouseInfo[iIndex][hPot],
			HouseInfo[iIndex][hCrack],
			HouseInfo[iIndex][hMaterials],
			HouseInfo[iIndex][hWeapons][0],
			HouseInfo[iIndex][hWeapons][1],
			HouseInfo[iIndex][hWeapons][2],
			HouseInfo[iIndex][hWeapons][3],
			HouseInfo[iIndex][hWeapons][4],
			HouseInfo[iIndex][hGLUpgrade],
			HouseInfo[iIndex][hPickupID],
			HouseInfo[iIndex][hCustomInterior],
			HouseInfo[iIndex][hCustomExterior],
			HouseInfo[iIndex][hExteriorA],
			HouseInfo[iIndex][hInteriorA]
The load is something like this..

Код:
stock SaveHouses()
{
	new
		szFileStr[1024],
What exactly does the szFileStr mean now I know that it means the amount of things it writes and loads but my question is how do I find how much it loads. For example, is it the amount of characters on one line like %d or is it the %d and the "|" sign. Thanks!
Reply


Messages In This Thread
fwrite and fread problems - by Johanson24 - 08.05.2013, 21:07
Re: fwrite and fread problems - by Bakr - 08.05.2013, 21:14
Re: fwrite and fread problems - by IceCube! - 08.05.2013, 21:15
Re: fwrite and fread problems - by Johanson24 - 08.05.2013, 21:21
Re: fwrite and fread problems - by Johanson24 - 08.05.2013, 21:23
Re: fwrite and fread problems - by IceCube! - 08.05.2013, 21:25
Re: fwrite and fread problems - by Bakr - 08.05.2013, 21:27
Re: fwrite and fread problems - by IceCube! - 08.05.2013, 21:30
Re: fwrite and fread problems - by Johanson24 - 08.05.2013, 21:32
Re: fwrite and fread problems - by Bakr - 08.05.2013, 21:37

Forum Jump:


Users browsing this thread: 2 Guest(s)