SA-MP Forums Archive
Can't Edit object.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can't Edit object.. (/showthread.php?tid=509793)



Can't Edit object.. - Brandon_More - 28.04.2014

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:

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;
}
How I attempted to Edit:

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;
}
Someone help?