OnPlayerSelectObject
#1

When using: public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)

the objectid is not working correctly even when I 100% know it should.
Reply
#2

No one's going to help you unless you give us your code.
Reply
#3

its not my code, used same piece onplayereditdynamicobject. The problem lies within the callback itself.
If you read here on the wiki: wiki

it says that the call back uses the parameters:
Код:
(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
but under neath that it says:
Код:
playerid	The ID of the player that selected an object
type	The type of selection
objectid	The ID of the selected object
Float:fX	The X position of the selected object
Float:fY	The Y position of the selected object
Float:fZ	The Z position of the selected object
it completely misses the modelid

either they do not have it correct on the website that I am using, or it is just buged
Reply
#4

They missed modelid. modelid is actually one of the parameters of this callback. modelid is the id of the object model. You can use it in your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)