07.02.2015, 11:51
Quote:
Probably you're calling the loading function inside a repetitive structure, so it gets called multiple times. The loading function looks fine, I mean ... I never used files to save data, but the two loops that load vehicles for each family look fine.
|
Код:
stock LoadFamiliesHQ() { if(!fexist(FAMILYHQPATH)) fcreate(FAMILYHQPATH); INI_Load(FAMILYHQPATH, .bLocal = false); for(new f = 0; f < MAX_FAMILY; f++) { LoadGangVehicles(f); } return 1; }
Quote:
I don't see an issue.
This is doing exactly as you said it was doing. For each family "f" it is loading 8 family vehicles "fv." If Spam is your issue, remove the printf message. |
Dude, i put printf to check if something go wrong there, because the family vehicles don't create properly due to vehicleids. (i look at my codes and all looks fine, for example: when i type /lock it says that isn't my family vehicle and before i switched to YINI it worked)