SA-MP Forums Archive
OnPlayerEditObject - 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: OnPlayerEditObject (/showthread.php?tid=483758)



OnPlayerEditObject - deimantas1 - 27.12.2013

Hello, I have a problem.

I create my object:
Код:
objekts = CreateDynamicObject(id,poz[0],poz[1],poz[2],0.00000,0.00000,0.00000);
And I print her objectid.
I give ID: 1777

On OnPlayerEditObject callback I print objectid which I editing, me print 122.

Object editing function:
Код:
EditDynamicObject(playerid,objekts);
What's the problem?


Re: OnPlayerEditObject - rocker3410 - 27.12.2013

"objekts" try changing to "objects"


Re: OnPlayerEditObject - deimantas1 - 27.12.2013

It's variable.


Re: OnPlayerEditObject - Threshold - 28.12.2013

I believe you should be using the OnPlayerEditDynamicObject callback rather than the OnPlayerEditObject callback.

pawn Код:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)



Re: OnPlayerEditObject - deimantas1 - 29.12.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
I believe you should be using the OnPlayerEditDynamicObject callback rather than the OnPlayerEditObject callback.

pawn Код:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
Thanks, working. +R3P