SA-MP Forums Archive
3 text label difference. - 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: 3 text label difference. (/showthread.php?tid=503675)



3 text label difference. - audriuxxx - 30.03.2014

Hi,

I want to ask. Is here a difference if i do that:

Код:
new Text3D:mylabel;
    mylabel = Create3DTextLabel("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
    Update3DTextLabelText(mylabel, 0xFFFFFFFF, "New text.");
or
Код:
new Text3D:mylabel;
    mylabel = Create3DTextLabel("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
    Update3DTextLabelText(Text3D:mylabel, 0xFFFFFFFF, "New text.");
When i update 3dtext label i add Text3D tag.


Re: 3 text label difference. - Konstantinos - 30.03.2014

mylabel has already Text3D tag so it's pointless.


Re: 3 text label difference. - SickAttack - 30.03.2014

There is no difference between both of them. Use this one:

pawn Код:
new Text3D:mylabel;
mylabel = Create3DTextLabel("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
Update3DTextLabelText(mylabel, 0xFFFFFFFF, "New text.");