YINI help
#4

Quote:
Originally Posted by HazardouS
Посмотреть сообщение
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.
the whole stock (LoadGangVehicles is to create the vehicles which loaded from the file)
Код:
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:
Originally Posted by Aerotactics
Посмотреть сообщение
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.
You don't see it wrong because it only 20/20k lines of serverlog.

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)
Reply


Messages In This Thread
YINI help - by Lidor124 - 07.02.2015, 08:05
Re: YINI help - by HazardouS - 07.02.2015, 10:16
Re: YINI help - by Aerotactics - 07.02.2015, 10:22
Re: YINI help - by Lidor124 - 07.02.2015, 11:51
Re: YINI help - by HazardouS - 07.02.2015, 11:56
Re: YINI help - by Lidor124 - 07.02.2015, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)