y_ini
#1

Hello, I can not understand 1 thing in y_ini. I want to make my server loading data about blocks using it, but i dont release how to do it.

The file with the data looks like:
Код:
1=534.0 83.0 6.0 3
2=434.0 94.0 4.0 3
4=174.0 36.0 1.0 2 
5=835.0 25.0 7.0 2
... And etc.
Where the number before the '=' is the block ID, the first number after '=' is X coordinate, second - Y, the third is Z coordinate, and the last number is the model id of block

Using dini, getting data from it looks like:

pawn Код:
new id[100],ft[256];
    for(new i=0;i<MAX_BLOCKS;i++)
    {


            format(id,sizeof(id),"%d",i);

            if(dini_Isset(MAPFILE,id))
            {
                                   ft=dini_Get(MAPFILE,id);
                                   //other code here
            }
    }
Is it possible to do the same with y_ini? Because I haven't found out how to do this
Reply


Messages In This Thread
y_ini - by pasha97 - 16.03.2013, 16:04
Re: y_ini - by park4bmx - 16.03.2013, 16:31
Re: y_ini - by pasha97 - 16.03.2013, 16:33
Re: y_ini - by park4bmx - 16.03.2013, 18:56
Re: y_ini - by pasha97 - 17.03.2013, 05:43
Re: y_ini - by mastermax7777 - 17.03.2013, 06:02
Re: y_ini - by park4bmx - 17.03.2013, 07:48

Forum Jump:


Users browsing this thread: 1 Guest(s)