From 98ba13ac8e71d5aa1d4c09ad9f710d05ae23efb3 Mon Sep 17 00:00:00 2001 From: Stev Date: Tue, 20 Aug 2019 23:33:07 +0100 Subject: [PATCH] furniture houses resolved --- gamemodes/irresistible/cnr/features/houses/furniture.pwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/houses/furniture.pwn b/gamemodes/irresistible/cnr/features/houses/furniture.pwn index e2727df..c891c17 100644 --- a/gamemodes/irresistible/cnr/features/houses/furniture.pwn +++ b/gamemodes/irresistible/cnr/features/houses/furniture.pwn @@ -399,6 +399,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) DestroyDynamicObject( objectid ); mysql_single_query( sprintf( "DELETE FROM `FURNITURE` WHERE `ID`=%d AND `HOUSE_ID`=%d", editing_furniture, editing_house ) ); + Iter_Remove( housefurniture[ houseid ], i ); new iNetProfit = floatround( g_houseFurniture[ i ] [ E_COST ] / 2 ); @@ -496,7 +497,7 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) GivePlayerCash( playerid, -g_houseFurniture[ i ] [ E_COST ] ); Streamer_Update( playerid ); // SyncObject( playerid ); - SendServerMessage( playerid, "You have purchased a "COL_GREY"%s"COL_WHITE". "COL_ORANGE"[%d/%d]", g_houseFurniture[ i ] [ E_NAME ], total_furniture + 1, vip_slots ); + SendServerMessage( playerid, "You have purchased a "COL_GREY"%s"COL_WHITE". "COL_ORANGE"[%d/%d]", g_houseFurniture[ i ] [ E_NAME ], total_furniture, vip_slots ); ShowFurnitureList( playerid, p_FurnitureCategory{ playerid } ); break; }