SA-MP Forums Archive
Attach3DTextLabelToPlayer do not work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Attach3DTextLabelToPlayer do not work? (/showthread.php?tid=111380)



Attach3DTextLabelToPlayer do not work? - _GriLLeX_ - 01.12.2009

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.




Re: Attach3DTextLabelToPlayer do not work? - Joe Staff - 01.12.2009

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.