UpdateDynamic3DTextLabelText not working
#1

Hello, Im creating a custom playername label so that it does display the character name instead of username.
This is my code:

UpdateDynamic3DTextLabelText is not working. Every character walks around with Loading Character Name..

What am i doing wrong?

PHP код:
//onplayerconnect
CharacterNameTag[playerid] = Create3DTextLabel("Loading Character Name", 0xFFFFFFFF, 0.0, 0.0, 0.1, NT_DISTANCE, 0, 1);
    
Attach3DTextLabelToPlayer(CharacterNameTag[playerid], playerid, 0.0, 0.0, 0.3);
// character selection
UpdateDynamic3DTextLabelText(CharacterNameTag[playerid], 0xFFFFFFFF, CharacterName[playerid]); 
CharacterName[playerid] holds the correct value. The problem is that the string is not updating somehow.
What am i doing wrong?

Edit:
sometimes im an idiot lol
Код:
UpdateDynamic3DTextLabelText
Reply
#2

This bruv...

PHP код:
new Text3D:CharacterNameTag[MAX_PLAYERS]; 
OnGamemodeInit
PHP код:
SetTimer("UpdateDynamic3DTextLabelText", 500, true); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)