Attach3DTextLabelToPlayer do not work?
#1

Should I create a 3DTextLabel attacked over the player, but I have a problem: the 3DTextLabel not seen, seems not to be created here is the code:
Код:
new string[256];
	new Text3D: Money[50];
	new Float:X, Float:Y,Float:Z;
	format(string, sizeof(string), "Soldi: $%d", PlayerInfo[playerid][pMoney]);
	Money[playerid] = Create3DTextLabel(string, COLOR_RED, 0,0,0, 40.0, 0, 1);
	GetPlayerPos(playerid, X, Y, Z);
	Attach3DTextLabelToPlayer(Money[playerid], playerid, X, Y, Z+0.3);
Could you help me? Thank you.

Reply
#2

Please read the parameters of Attach3DTextLabelToPlayer.

You'll see that the X,Y,Z parameters are offsets not coordinates. That means that the 3D Text will show that far away from the player.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)