[Pawn] [Solved] Selecting and Editing object problem - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) --- Thread: [Pawn] [Solved] Selecting and Editing object problem (/showthread.php?tid=1531) |
[Solved] Selecting and Editing object problem - Radical - 2021-01-16 SOLUTION:? Use streamer v2.9.4. 1: OnPlayerEditObject/OnPlayerEditDynamicObject response is EDIT_RESPONSE_UPDATE Recently, a bug was found on the server that when we edit objects, the objects return to where they were created after a few seconds. I do not know why in OnPlayerEditObject/OnPlayerEditDynamicObject the 'response' is EDIT_RESPONSE_UPDATE. The response should be EDIT_RESPONSE_FINAL to solve. 2: SelectObject function is not working for dynamic objects. When I select the object, the OnPlayerSelectDynamicObject is not called. Why? What is your solutions? Thank u. RE: Selecting and Editing object problem - Pinch - 2021-01-16 1. Quote:OnPlayerEditDynamicObject is called: 2. Code: native EditDynamicObject(playerid, STREAMER_TAG_OBJECT:objectid); RE: Selecting and Editing object problem - Radical - 2021-01-16 (2021-01-16, 02:32 PM)Pinch Wrote: 1.Quote:OnPlayerEditDynamicObject is called:2. 1. I (finish) save the object but response is EDIT_RESPONSE_UPDATE instead of EDIT_RESPONSE_FINAL 2. I said when I select the object, the OnPlayerSelectDynamicObject is not called. RE: Selecting and Editing object problem - Pinch - 2021-01-16 SelectObject function is not working for dynamic objects. That's what you wrote so I assumed that you're using the wrong native RE: Selecting and Editing object problem - Radical - 2021-01-17 See, I save the dynamic object but after a few seconds it goes back to where it was created: This is a problem. Please tell me the solution RE: Selecting and Editing object problem - Expert* - 2021-01-18 In _FINAL Set SetDynamicObjectPos( objectid, x, y, z ); SetDynamicObjectRot( objectid, rx, ry, rz ); RE: Selecting and Editing object problem - PutuSuhartawan - 2021-04-15 Thanks @Expert* RE: Selecting and Editing object problem - Radical - 2021-04-16 (2021-01-18, 07:14 PM)Expert* Wrote: In _FINAL I solved this problem without doing this. I just put this code Code: if (response ==?EDIT_RESPONSE_UPDATE) |