SA-MP Forums Archive
edit dynamic object error - 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: edit dynamic object error (/showthread.php?tid=655427)



edit dynamic object error - ShadowBlack - 20.06.2018

i have an attached object to an vehicle, how i can to modify the position? please give me an example ?

when i try to edit: https://www.youtube.com/watch?v=zw81...ature=*********

how i can do like this: https://www.youtube.com/watch?v=NbmJdDJ_JYU


Re: edit dynamic object error - ShadowBlack - 22.06.2018

bump, help please


Re: edit dynamic object error - ShadowBlack - 22.06.2018

bump


Re: edit dynamic object error - ShadowBlack - 23.06.2018

bumb, help someone


Re: edit dynamic object error - ShadowBlack - 25.06.2018

bump


Re: edit dynamic object error - Sew_Sumi - 25.06.2018

There are no examples, show what you've got and what functions/callbacks you are using to do this.


Re: edit dynamic object error - taktaz - 25.06.2018

You can taste this topic:

https://sampforum.blast.hk/showthread.php?tid=589152

Hope it help you , and you press reputation...


Re: edit dynamic object error - div - 25.06.2018

Noone is going to help you unless you do not provide the TEXT of ERROR and everything, no-one is going to help you LIKE THIS.


Re: edit dynamic object error - ShadowBlack - 25.06.2018

this is my script with object:https://pastebin.com/xAZdt5sN

and when i try to edit, it's not moving


Re: edit dynamic object error - Beckett - 25.06.2018

It's a Dynamic object, therefore you need to use the Dynamic functions.

INCORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetObjectPos(objectid, x, y, z);
    SetObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}
CORRECT:
Код:
public OnPlayerEditDynamicObject(playerid, STREAMER_TAG_OBJECT objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    SetDynamicObjectPos(objectid, x, y, z);
    SetDynamicObjectRot(objectid, rx, ry, rz);
 
    SCMf(playerid, COLOR_RED, "xyz: %f/%f/%f, rxyz: %f %f %f", x, y, z, rx, ry, rz);
 
    return 1;
}