25.05.2014, 17:39
(
Последний раз редактировалось VenomMancer; 28.06.2014 в 20:54.
)
This the full Code with DINI -_-"
> http://pastebin.com/9MSQGMiV
i am confused with this :
How i can load(read) all MAX_OSLOTS attachments on Y_ini ?
Sorry for may bad english
> 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;
}
Sorry for may bad english