08.05.2013, 21:07
Alright so the basic code is something like this-..
The load is something like this..
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!
Код:
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]
Код:
stock SaveHouses()
{
new
szFileStr[1024],


