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


Messages In This Thread
Name fam 3d text help - by skiplovebra - 13.11.2018, 06:39
Re: Name fam 3d text help - by AmirSavand - 13.11.2018, 09:47
Re: Name fam 3d text help - by khRamin78 - 13.11.2018, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)