Objects disappear!
#2

Try this:
Код:
  if(response == EDIT_RESPONSE_FINAL) 
                { 
                    new houseid = House_Inside(playerid); 

                    if(houseid >= 0 && HasFPrems(playerid, houseid)) 
                    { 
                        if(p_Info[playerid][pCash] < furnitureObj[p_Info[playerid][pSelect]][fCost]) 
                        { 
                            return SendClientMessage(playerid, COLOR_GREY, "You couldn't afford to purchase this item."); 
                        } 

                        new 
                            string[16]; 

                        GivePlayerCash(playerid, -furnitureObj[p_Info[playerid][pSelect]][fCost]); 

                        mysql_format(connect, queryBuffer, sizeof(queryBuffer), "INSERT INTO furniture VALUES(null, %i, %i, '%e', %i, '%f', '%f', '%f', '%f', '%f', '%f', %i, %i, 0, 0)", h_Info[houseid][hSQLId], furnitureObj[p_Info[playerid][pSelect]][fModel], furnitureObj[p_Info[playerid][pSelect]][fName], furnitureObj[p_Info[playerid][pSelect]][fCost], x, y, z, rx, ry, rz, h_Info[houseid][hIntIW], h_Info[houseid][hIntVW]); 
                        mysql_tquery(connect, queryBuffer); 
                        mysql_tquery(connect, "SELECT * FROM furniture WHERE id = LAST_INSERT_ID()", "OnMysqlFinish", "ii", LOAD_FURNITURE, h_Info[houseid][hLabels]); 

                        format(string, sizeof(string), "~r~-$%i", furnitureObj[p_Info[playerid][pSelect]][fCost]); 
                        GameTextForPlayer(playerid, string, 5000, 1); 
                        SetDynamicObjectPos(objectid,x,y,z);
                        SetDynamicObjectRot(objectid,rx,ry,rz);

                    } 
                }
This because the ingame editor doesn't save automatically the new position.
Reply


Messages In This Thread
Objects disappear! - by AlexMSK - 06.11.2017, 01:33
Re: Objects disappear! - by pollo97 - 06.11.2017, 06:14

Forum Jump:


Users browsing this thread: 3 Guest(s)