How to change attached label position?
#1

Hi all, I want to change the position of CreateDynamic3DTextLabel that's attached to a player.

I tried but it don't change. How can I do?

That's my code:

PHP код:

new
    
stringnome[50],
    
Float:X,
    
Float:Y,
    
Float:Z;
    
GetPlayerPos(playeridXYZ);
    
format(stringnomesizeof(stringnome), "(%d) %s"playeridGetName(playerid));
    
TargaNome[playerid] = CreateDynamic3DTextLabel(stringnome, -1XYZ30playeridINVALID_VEHICLE_ID0, -1, -1, -1100.0); 
Reply
#2

Quote:
Originally Posted by DarkLouis
Посмотреть сообщение
that's attached to a player
You must re attach it with a new position (offsets)

Greekz
Reply
#3

How? If I put Z - 1 or Z + 1.. it don't change anything.
Reply
#4

Quote:
Originally Posted by DarkLouis
Посмотреть сообщение
it don't change anything.
The offsets you must set in this function: https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

Reply
#5

It's difference between Create3DTextLabel and CreateDynamic3DTextLabel
Reply
#6

//Edit: Oh i missed sth...

Just delete the old and create the new one...
Reply
#7

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)