12.03.2015, 00:40
(
Последний раз редактировалось Ahmad45123; 22.01.2016 в 21:09.
)
----
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 |
1|0|Ben_Jayson|1533.928466|-1647.942260|13.382802|0|0|0|1|100|0|-25.884498|-185.868988|1003.546875|17 |
<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>
The advantage of this being? I mean, isn't y_ini already creating / aiming(to create) something more organized? ****** seems to be going way over-board with his shit.
|
<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.
|
new
// The name of the file, can be any string variable or literal.
fileToWrite[] = "mine.INI",
// "INI_Open" returns a variable with tag "INI".
INI:iniFile = INI_Open(fileToWrite);
//
// y_ini supports tags, that is:
//
// [tag]
// key = value
//
INI_SetTag(iniFile, "examples");
// Write an integer value with the key "some_integer" under the current tag:
INI_WriteInt(iniFile, "some_integer", 42);
// Now close the current file:
INI_Close(iniFile);
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 BTW you seem to hate ******... lol |
There is nothing wrong with using text files, - he didn't create the include - ****** did. He seems to be sticking to files instead of SQL - You should directly address him.
|