SA-MP Forums Archive
Editing Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Editing Help (/showthread.php?tid=604344)



Editing Help - ArianGubetini - 03.04.2016

Hello.I have a gamemode that was scripted years ago and when i edit object e.x toys i can edit them using coordinates only.I want to ask if anyone can tell me how to update my GM and be able to edit objects using mouse.
Like this:


Thanks


Re: Editing Help - DTV - 03.04.2016

You can use "EditObject(playerid, objectid)" if you SA-MP's native "CreateObject" function or you can use "EditDynamicObject(playerid, objectid)" for if you use streamer's native "CreateDynamicObject" function. Then, when you hit the save icon, it will then be called under "public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)" if you use SA-MP's system or it will be called under "public OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)" if you use streamer's system.

I hope that doesn't sound too complicated, just ask if you don't understand a certain part.


Re: Editing Help - ArianGubetini - 03.04.2016

Quote:
Originally Posted by DTV
Посмотреть сообщение
You can use "EditObject(playerid, objectid)" if you SA-MP's native "CreateObject" function or you can use "EditDynamicObject(playerid, objectid)" for if you use streamer's native "CreateDynamicObject" function. Then, when you hit the save icon, it will then be called under "public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)" if you use SA-MP's system or it will be called under "public OnPlayerEditDynamicObject(playerid, objectid, response, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz)" if you use streamer's system.

I hope that doesn't sound too complicated, just ask if you don't understand a certain part.
Yeah im using EditObject(playerid,object) but the problem is that i cant edit the objects in game.I dont even see that editing cros that appears while edting the object.So when i try to edit using the old method(putin x,y,z using numbers) it works.When i change the editing way it does not.So i do /editobject and then i cant do anything.Hope you can help.
Thanks.


Re: Editing Help - Golden96 - 03.04.2016

Are you using an object streamer?


Re: Editing Help - Tingesport - 03.04.2016

You'd need to provide the script inorder to get any help at all, since we can't guess what the problem is, mate.