OnPlayerEditObject
#1

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?
Reply
#2

"objekts" try changing to "objects"
Reply
#3

It's variable.
Reply
#4

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)
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)