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

Quote:
Originally Posted by Abagail
Посмотреть сообщение
You know what really grinds my gears?

When ****** makes includes no one even knows about.

This is one of them. - I seriously had no idea anyone even used .xml files in SA-MP but apparently ****** has produced yet another useless include.

OP: um good job i guess
He developed this as its used in y_td.

And yes I know no one really uses it because they didn't know it exists.

I mean thats why I created this tutorial, lol

But it'd be a better replacement for CFG files which is used in each and every script.... As this one is more ordered and tidy...

Instead of cfg which looks like:
Quote:

1|0|Ben_Jayson|1533.928466|-1647.942260|13.382802|0|0|0|1|100|0|-25.884498|-185.868988|1003.546875|17

It will be:
Код 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>
</XML>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)