Attached 3d label is not going up -
ax1 - 02.01.2017
CreateDynamic3DTextLabel("Test", 0xFFFFFFFF, x,y,z+100, 15.0, playerid);
No matter what value do I add to z, text still isnt above player's nickname. As you can see I added 100 and text still is under player's nickname
Re: Attached 3d label is not going up - iLearner - 02.01.2017
Please post the full code, including where you get the xyz
Re: Attached 3d label is not going up -
ax1 - 02.01.2017
Quote:
Originally Posted by iLearner
Please post the full code, including where you get the xyz
|
Код:
public OnPlayerSpawn(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateDynamic3DTextLabel("Test", 0xFFFFFFFF, x,y,z+100, 15.0, playerid);
return 1;
}
Re: Attached 3d label is not going up - iLearner - 02.01.2017
Are you simply trying to create the label or even attach it to player too?
Cuz this thing simply create the label on player spawn location.
Re: Attached 3d label is not going up -
ax1 - 02.01.2017
Quote:
Originally Posted by iLearner
Are you simply trying to create the label or even attach it to player too?
Cuz this thing simply create the label on player spawn location.
|
I'm trying to attach label to player
CreateDynamic3DTextLabel(const text[], color, Float

, Float:y, Float:z, Float:drawdistance,
attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
Re: Attached 3d label is not going up -
RoboN1X - 02.01.2017
That's because you are providing the x,y,z to player position, where it's already relative to the player position.
Just simply do this without GetPlayerPos
Код:
CreateDynamic3DTextLabel("Test", 0xFFFFFFFF, 0.0, 0.0, 1.0, 15.0, playerid);
Also increase the draw distance if you cant see the text from far.