whats wrong with this loading code?
#3

What do you mean indent?
Quote:

enum eGarageData {
b_iInteriorID,
b_szOwner[MAX_PLAYER_NAME],
Float: b_fExteriorPos[4],
Float: b_fInteriorPos[4],
Text3D: b_tLabelID,
b_iValue,
b_iSafeMoney,
b_iPickupID,
b_iFee,
b_iLocked
};

Quote:

SaveGarages() {

new
szFileStr[1024],
File: fHandle = fopen("Garages/garages.cfg", io_write);

for(new iIndex; iIndex < MAX_GARAGES; iIndex++) {
format(szFileStr, sizeof(szFileStr),"%s|%i|%.2f|%.2f|%.2f|%.2f|%.2f| %.2f|%.2f|%.2f|%i|$%i|%i|%i\r\n",
arrGarage[iIndex][b_szOwner],
arrGarage[iIndex][b_iInteriorID],
arrGarage[iIndex][b_fExteriorPos][0],
arrGarage[iIndex][b_fExteriorPos][1],
arrGarage[iIndex][b_fExteriorPos][2],
arrGarage[iIndex][b_fExteriorPos][3],
arrGarage[iIndex][b_fInteriorPos][0],
arrGarage[iIndex][b_fInteriorPos][1],
arrGarage[iIndex][b_fInteriorPos][2],
arrGarage[iIndex][b_fInteriorPos][3],
arrGarage[iIndex][b_iValue],
arrGarage[iIndex][b_iFee],
arrGarage[iIndex][b_iSafeMoney],
arrGarage[iIndex][b_iLocked]
);
fwrite(fHandle, szFileStr);
}
fclose(fHandle);
return 1;
}

Reply


Messages In This Thread
whats wrong with this loading code? - by RLGaming - 09.10.2012, 22:57
Re: whats wrong with this loading code? - by diego_p11 - 10.10.2012, 00:58
Re: whats wrong with this loading code? - by RLGaming - 10.10.2012, 07:01
Re: whats wrong with this loading code? - by Faisal_khan - 10.10.2012, 07:03
Re: whats wrong with this loading code? - by RLGaming - 10.10.2012, 07:59
Re: whats wrong with this loading code? - by RLGaming - 10.10.2012, 11:05
Re: whats wrong with this loading code? - by Kwarde - 10.10.2012, 12:42
Re: whats wrong with this loading code? - by RLGaming - 10.10.2012, 14:25

Forum Jump:


Users browsing this thread: 2 Guest(s)