Help me DINI problem !
#1

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 load(read) all MAX_OSLOTS attachments on Y_ini ?
Sorry for may bad english
Reply
#2

Bump
Reply
#3

Bump
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
Put them in separate tags, then you don't need to format any names.
Can you make it for me?
cuz i dont know how to do like your say.

#sorry for my bad english.
Reply
#5

BUMP
Reply
#6

You can probably fix it by using something better than dini. Any proper scripter has moved on from the include, and the only ones who still script with it will just give you bad advice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)