28.04.2014, 02:00
I have been developing this Furniture system for my houses.. everything loads in.. and whatnot although when I try and use the EditPlayerObject (Also tryed EditObject) function it doesn't work..
How I load the object:
How I attempted to Edit:
Someone help?
How I load the object:
pawn Код:
stock ReloadFurniture(h)
{
format(SmllStr, sizeof(SmllStr), "Furniture/Slot-%d.ini", h);
if(dini_Exists(SmllStr))
{
ObjectInfo[h][oActive] = 1;
new houseId = ObjectInfo[h][OHouse], intt = House[houseId][interior];
/*
Removed loads.
*/
ObjectInfo[h][oObject] = CreateDynamicObject(ObjectInfo[h][OModel], ObjectInfo[h][HereX], ObjectInfo[h][HereY], ObjectInfo[h][HereZ], ObjectInfo[h][HereA], ObjectInfo[h][HereB], ObjectInfo[h][HereC], House[houseId][intVW], interiorpack[intt][interior]);
}
return 1;
}
pawn Код:
COMMAND:edit(playerid, params[])
{
new iObject;
if(sscanf(params, "d", iObject)) return Check(playerid, "[Object]");
EditObject(playerid, ObjectInfo[iObject][oObject]);
// EditPlayerObject(playerid, ObjectInfo[iObject][oObject]);
return 1;
}

