Attached 3d label is not going up
#1

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

Please post the full code, including where you get the xyz
Reply
#3

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;
}
Reply
#4

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

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);
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)