Little Question ! +REP1
#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


Messages In This Thread
Little Question ! +REP1 - by VenomMancer - 29.05.2014, 09:01
Re: Little Question ! +REP1 - by Lynn - 29.05.2014, 09:03
Re: Little Question ! +REP1 - by VenomMancer - 29.05.2014, 09:05
Re: Little Question ! +REP1 - by Lynn - 29.05.2014, 09:09
Re: Little Question ! +REP1 - by VenomMancer - 29.05.2014, 09:12
Re: Little Question ! +REP1 - by AiRaLoKa - 02.06.2014, 07:03

Forum Jump:


Users browsing this thread: 2 Guest(s)