[Tutorial] Using y_xml to write/read xml files. [Another way to write CFG data but better]
#7

Quote:
Originally Posted by Ahmad45123
Посмотреть сообщение
Well, XML is more like a database... An XML file is just like a table with items in it.
while in y_ini you will have to make multiple files.

For example, If you have a biz system in xml.. It'd be only 1 file for all bizs:
Код HTML:
<XML>
  <Biz name="1">
    <IntInterior>17</IntInterior>
    <IntZ>1003.546875</IntZ>
    <IntY>-185.868988</IntY>
    <IntX>-25.884498</IntX>
    <AP>0</AP>
    <Price>10000</Price>
    <Level>1</Level>
    <Sold>0</Sold>
    <Products>91</Products>
    <Money>920</Money>
    <Z>13.553833</Z>
    <Y>-2105.518066</Y>
    <X>2421.240722</X>
    <Owner>Frank_Jones</Owner>
    <Status>1</Status>
    <Type>4</Type>
  </Biz>
  <Biz name="2">
    <IntInterior>12</IntInterior>
    <IntZ>1025.5448475</IntZ>
    <IntY>-1815.868988</IntY>
    <IntX>-12.884498</IntX>
    <AP>15</AP>
    <Price>30500</Price>
    <Level>4</Level>
    <Sold>1</Sold>
    <Products>100</Products>
    <Money>10000</Money>
    <Z>25.553833</Z>
    <Y>-3125.518066</Y>
    <X>1261.240722</X>
    <Owner>Johny_Mac</Owner>
    <Status>0</Status>
    <Type>6</Type>
  </Biz>
</XML>
And if you have this in y_ini.. You'll have to have a folder in scriptfiles and you will have to store each biz in each own ini file.

And BTW you seem to hate ******... lol
Why don't you just use SQL instead?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)