Name fam 3d text help
#1

This code helps me to see the 3d family on the player. But it is inserted 3d can someone help me?
Код:
new Text3D:NameFam[MAX_PLAYERS];
Код:
//onplayerload
NameFam[playerid] = Create3DTextLabel(" ", COLOR_WHITE, 0, 0, 0, 20.0, GetPlayerVirtualWorld(playerid));
	Attach3DTextLabelToPlayer(NameFam[playerid], playerid, 0.0, 0.0, -0.2);
	SetTimerEx("UpdateNameFamily", 1000, true, "i", playerid);
Код:
forward UpdateNameFamily(playerid);
public UpdateNameFamily(playerid)
{
	if(PlayerInfo[playerid][pFMember] != 255)
	{
	    new nfa[128];
		format(nfa, sizeof(nfa), "%s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
		Update3DTextLabelText(NameFam[playerid], COLOR_WHITE, nfa);
	}
	else Update3DTextLabelText(NameFam[playerid], COLOR_WHITE, " ");
	return 1;
}
The image shows the error code
Reply
#2

Quote:

This code helps me to see the 3d family on the player. But it is inserted 3d can someone help me?

What? Explain a bit more about your issue.
Reply
#3

First of all use this ShowNameTags(0); if you need remove the normal samp name tags above player


Second you have to change the cordinat of X Y Z to make it in right place : like this just test and find which fits to you

PHP код:
Attach3DTextLabelToPlayer(NameFam[playerid], playerid0.00.02.0); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)