16.03.2013, 16:04
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:
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:
Is it possible to do the same with y_ini? Because I haven't found out how to do this
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.
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
}
}