02.01.2018, 14:43
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?
Thanks in advance
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}
};
Код:
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
}

