AttachPlayerObjectToPlayer : removed in 0.3. I can...
# support-forum
c
this error flooded in my server_log is because of this two functions?
RemovePlayerAttachedObject(playerid, index);
and
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ, materialcolor1, materialcolor2);
what it should be instead? could find nothing on docs: https://www.open.mp/docs/scripting/functions/SetPlayerAttachedObject
c
You talking about two different object attach systems. There are SetPlayerAttachedObject (it's kinda different entity not related to regular server objects) and AttachObjectToPlayer (for already created regular objects). AttachPlayerObjectToPlayer were in fact removed from 0.3 server branch, unfortunately.
c
but i have no metion of
AttachPlayerObjectToPlayer
in my whole gamemode
why this is printing on my server_log?
c
Maybe this native is called in some of your filterscripts or plugins
c
in file a_objects.inc there is a call of this
and #include is called in file a_samp.inc did u know where should i update those libs?
c
There are no calls in any of those libs, it is just probably only declared there
find exactly where it could be called. From a filterscript or another third-party include, for example
c
yes, there is in line 47 of my a_object have:
native AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
and this a object is imported in my a_samp on the line 25
#include <a_objects>
i think my libs are outupdated, right? if it is the case, where to update?
c
It's not calling, it's declaring
c
i did ctrl+shift+f in my whole folder o sampserver and that is the only mention of
AttachPlayerObjectToPlayer
6 Views