Saving and loading y_iterator/foreach
#1

Hello everyone,

I am a bit stuck on how i should save these things.
I know how to save normal arrays but how does it work with these?
Can someone give me an example on saving these in dini or y_ini?

I did try saving them such as but got already stuck there:
dini_IntSet(file, "?", SeedInformation[i][SeedName]);


There are 3 different kind weed species.
How to make it save the correct specie etc?
Код:
new SeedInformation[][seedpacks] =
{
    {0, "White Widow", 50, 4, 600},
    {1, "Purple Haze", 100, 3, 600},
    {2, "Choco Kush", 150, 4, 600}
};
Thanks in advance
Код:
new Iterator:Weeds<MAX_WEEDS>;
new Iterator:Loots<MAX_LOOTS>;

enum weedinfo {
	wProgress,
	wObjectID,
	Float:wLocation[3],
	Float:oPosition[3],
	Text3D:wLabel,
	Timer,
	Timer:x,
	wSeed
}
new WeedInfo[MAX_WEEDS][weedinfo];

enum pweedinfo {
	pSelection,
	Seeds[5],
	Weed[5]
}
new PlayerWeedInfo[MAX_PLAYERS][pweedinfo];

enum lootinfo {
	Text3D:lLabel,
 	Float:lLocation[3],
	wType,
	wGrams,
	lObjectID
}
new LootInfo[MAX_LOOTS][lootinfo];

enum seedpacks {
	id,
	SeedName[36],
	SeedPrice,
	GpS,
	time
}
Reply


Messages In This Thread
Saving and loading y_iterator/foreach - by jasperschellekens - 02.01.2018, 14:43
Re: Saving and loading y_iterator/foreach - by Dayrion - 03.01.2018, 06:03
Re: Saving and loading y_iterator/foreach - by jasperschellekens - 03.01.2018, 08:47
Re: Saving and loading y_iterator/foreach - by jasperschellekens - 03.01.2018, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)