Y_Ini tag
#1

I have a house system working with y_ini, i need to save the bought vehicles into the same house file that the player owned.

Currently there is only one tag named data to hold the house data in the house file like:

Код:
[data]
HouseName = {FFFFFF}House of Oxide
HouseX = 1457.890014
HouseY = 1013.313598
HouseZ = 10.820310
HouseLevel = 1 etc...
My question is, if i add another tag after the house data called [vehicles] like:

Код:
[data]
HouseName = {FFFFFF}House of Oxide
HouseX = 1457.890014
HouseY = 1013.313598
HouseZ = 10.820310
HouseLevel = 1 etc...

[vehicles]
Model = 520
Paint = 1
Nitro = 1
Color1 = 21
color2 = 55 etc...
How would i load those 2 tags separately? I mean the first tag [data] is used to load the houses in OnGameModeInit, and i need the second tag [vehicles] to be loaded in OnPlayerConnect callback. But i have no idea how to do it. Can someone explain me? The saving system works fine but i got problem while loading them.

I would make separate files for the vehicles but since i already have other files i.e bank, businesses, and so on, i thought of adding the vehicles inside the house file to reduce the gamemode size.
Reply


Messages In This Thread
Y_Ini tag - by iOxide - 01.10.2014, 11:01
Re: Y_Ini tag - by dusk - 01.10.2014, 11:32
Re: Y_Ini tag - by iOxide - 01.10.2014, 11:43
Re: Y_Ini tag - by iOxide - 02.10.2014, 18:53
Re: Y_Ini tag - by Evocator - 02.10.2014, 19:07
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:22
Re: Y_Ini tag - by RoW001 - 05.10.2014, 14:36
Re: Y_Ini tag - by iOxide - 05.10.2014, 14:43
Re: Y_Ini tag - by iOxide - 05.10.2014, 19:03

Forum Jump:


Users browsing this thread: 2 Guest(s)