Little Question ! +REP1
#1

pawn Код:
#include <YSI\y_ini>
#include <Dini>
Will make lag ?
or what ?
Reply
#2

Y_INI will not create lag, or bog down your server.
However, DINI will create lag towards your server.
So do not use DINI. Y_INI is nearly 30 times faster anyways.
Reply
#3

I have learned (knowed) how to Write file with y_ini.inc!
But i confused, about How to Read the file.

Look this sir : PASTEBIN
The problem on : Public OnPlayerSpawn .

Sorry for my bad english -_-
Reply
#4

What's the problem exactly..?
Reply
#5

The problem i dont know how to read again the file

Look this on DINI!

This the full Code with DINI -_-"
> http://pastebin.com/9MSQGMiV

i am confused with this :
pawn Код:
public OnPlayerSpawn(playerid)
{
    new file[256];
    new name[24];
    new f1[15],f2[15],f3[15],f4[15],f5[15],f6[15],f7[15],f8[15],f9[15],f10[15],f11[15];
    GetPlayerName(playerid,name,24);
    format(file,sizeof(file),"Player Objects/%s.ini",name);
    if(!dini_Exists(file)) return 1;
    for(new x;x<MAX_OSLOTS;x++)
        {
            format(f1,15,"O_Model_%d",x);
                format(f2,15,"O_Bone_%d",x);
                format(f3,15,"O_OffX_%d",x);
                format(f4,15,"O_OffY_%d",x);
                format(f5,15,"O_OffZ_%d",x);
                format(f6,15,"O_RotX_%d",x);
                format(f7,15,"O_RotY_%d",x);
                format(f8,15,"O_RotZ_%d",x);
                format(f9,15,"O_ScaleX_%d",x);
                format(f10,15,"O_ScaleY_%d",x);
                format(f11,15,"O_ScaleZ_%d",x);
            if(dini_Int(file,f1)!=0)
            {
                SetPlayerAttachedObject(playerid,x,dini_Int(file,f1),dini_Int(file,f2),dini_Float(file,f3),dini_Float(file,f4),dini_Float(file,f5),dini_Float(file,f6),dini_Float(file,f7),dini_Float(file,f8),dini_Float(file,f9),dini_Float(file,f10),dini_Float(file,f11));
                }
        }
        return 1;
}
How i can read all MAX_OSLOTS attachments on Y_ini ?
Sorry for may bad english
Reply
#6

try to use MySQL...
Y_Ini is hard to use, and dini make your server laggy...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)