13.11.2018, 06:39
This code helps me to see the 3d family on the player. But it is inserted 3d can someone help me?
The image shows the error code
Код:
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; }
