14.03.2015, 23:42
make sure you use OnPlayerEditObject.
as you can see there in the example, it keeps setting the object's position to the position you dragged it to, try doing it for the 3dtextlabel too, it should work just fine![Smiley](images/smilies/smile.png)
there's no such function in samp ![Tongue](images/smilies/razz.gif)
What you could do is:
as you can see there in the example, it keeps setting the object's position to the position you dragged it to, try doing it for the 3dtextlabel too, it should work just fine
![Smiley](images/smilies/smile.png)
Quote:
Also, is the 3D Text object attached to the object? Are you using streamer or the regular objects?
|
![Tongue](images/smilies/razz.gif)
What you could do is:
pawn Код:
enum E_OBJECT_DATA
{
E_OBJ_ID,
E_OBJ_MODELID,
Text3D:E_OBJ_TEXT
// the rest of the stuff such as X, Y and Z coords/rots
};
new Objects[ MAX_PLAYERS ][ E_OBJECT_DATA ];
// when object is created
Objects[ playerid ][ E_OBJ_TEXT ] = CreatePlayer3DTextLabel(playerid,"w.e you wanna put here", your_color, X,Y,Z,draw_distance);
// at OnPlayerEditObject
Delete3DTextLabel( Objects[ playerid ][ E_OBJ_TEXT ] );
Objects[ playerid ][ E_OBJ_TEXT ] = CreatePlayer3DTextLabel(playerid,"w.e you wanna put here", your_color, X,Y,Z,draw_distance);
// and the object position updating etc.