SA-MP Forums Archive
UpdateDynamic3DTextLabelText not working - 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)
+--- Thread: UpdateDynamic3DTextLabelText not working (/showthread.php?tid=653390)



UpdateDynamic3DTextLabelText not working - jasperschellekens - 03.05.2018

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"0xFFFFFFFF0.00.00.1NT_DISTANCE01);
    
Attach3DTextLabelToPlayer(CharacterNameTag[playerid], playerid0.00.00.3);
// character selection
UpdateDynamic3DTextLabelText(CharacterNameTag[playerid], 0xFFFFFFFFCharacterName[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



Re: UpdateDynamic3DTextLabelText not working - TitoRayne - 03.05.2018

This bruv...

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