flexedchief
Дебютант
Проблема в том, что при покупке мебели, то есть при её отмене, сервер должен возвращать деньги, а вместо этого он дает 0$.
format(msg, sizeof(msg), "Вы отменили покупку %s и получили свои деньги обратно, $%s.", FurnitureInfo[houseid][GetIntVar(playerid, "ChosenFurnitureSlot")][fName], GetAmount(FurnitureInfo[houseid][GetIntVar(playerid, "ChosenFurnitureSlot")][fMarketPrice]));
ServerMSG(playerid, msg);
GiveCash(playerid, FurnitureInfo[houseid][GetIntVar(playerid, "ChosenFurnitureSlot")][fMarketPrice]);
ServerMSG(playerid, msg);
GiveCash(playerid, FurnitureInfo[houseid][GetIntVar(playerid, "ChosenFurnitureSlot")][fMarketPrice]);
