27.03.2015, 22:38
You can see in the video down. When I click on the Furniture ID first time after connecting to the server, object doubles up by itself.
[ame="http://www.youtube.com/watch?v=o0mmY3Uak24"]http://www.youtube.com/watch?v=o0mmY3Uak24[/ame]
DIALOG_FURNITURELE is for editing, and listitem when the DIALOG_FURNITURELE is called.
[ame="http://www.youtube.com/watch?v=o0mmY3Uak24"]http://www.youtube.com/watch?v=o0mmY3Uak24[/ame]
DIALOG_FURNITURELE is for editing, and listitem when the DIALOG_FURNITURELE is called.
pawn Код:
else if(listitem == 3)
{
new obj[512];
new h = PlayerInfo[playerid][pHouseKey];
for(new oh = 0; oh < 50; oh++)
{
if(HouseInfo[h][hExtObjects][oh] != 0)
{
format(obj, sizeof(obj), "%s\nFurniture ID: %d", obj, HouseInfo[h][hFurnObjID][oh]);
}
}
ShowPlayerDialog(playerid, DIALOG_FURNITURELE, DIALOG_STYLE_LIST, "Kuca - eksterijer", obj, "Izaberi", "Izadji");
}
case DIALOG_FURNITURELE:
{
if(response)
{
new h = PlayerInfo[playerid][pHouseKey];
pFurniture[playerid] = HouseInfo[h][hFurnObject][listitem];
pFurnObject[playerid] = HouseInfo[h][hExtObjects][listitem];
EditDynamicObject(playerid, pFurniture[playerid]);
}
}