SA-MP Forums Archive
Why doesn't it attach (3DLabelText) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why doesn't it attach (3DLabelText) (/showthread.php?tid=187279)



Why doesn't it attach (3DLabelText) - ViruZZzZ_ChiLLL - 02.11.2010

pawn Код:
format(string, sizeof(string), "HOHO : %s [NOOB]~n~%d", name, Okay[playerid]);
label[playerid] = Create3DTextLabel(string, Lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
amidoingitwrong?

NO ERRORS IT JUST WON'T ATTACH >.>


Re: Why doesn't it attach (3DLabelText) - Grim_ - 02.11.2010

Interesting. Are you sure label has the Text3D: beginning?


Re: Why doesn't it attach (3DLabelText) - ViruZZzZ_ChiLLL - 02.11.2010

Yes :
pawn Код:
new Text3D:label[MAX_PLAYERS];



Re: Why doesn't it attach (3DLabelText) - willsuckformoney - 02.11.2010

I think that the 3D TextLabels are fucked since 0.3b


Re: Why doesn't it attach (3DLabelText) - Grim_ - 02.11.2010

Your arguments do not match with the amount found here: https://sampwiki.blast.hk/wiki/Create3DTextLabel

Also you could try creating the 3D text label at the players position (using GetPlayerPos), then attaching it.


Re: Why doesn't it attach (3DLabelText) - willsuckformoney - 02.11.2010

Your missing the virtual world from what I see.


Re: Why doesn't it attach (3DLabelText) - ViruZZzZ_ChiLLL - 02.11.2010

Tried everything to the GetPlayerPos and stuff.
Still no >.>

I even tried putting in testLOS.
IDK what's wrong D:

@willsuckformoney I didn't miss it.


Re: Why doesn't it attach (3DLabelText) - willsuckformoney - 02.11.2010

Does it create the textlabel? Also where do you have that piece of code at?


Re: Why doesn't it attach (3DLabelText) - Grim_ - 02.11.2010

Do you still see the 3D Text Label even though it doesn't attach to the player?

- Make sure the player is not in a different virtual world than the 3D Text Label was created in

I've personally never attempted to use special symbols in 3D Text (~n~/~r~/etc), so try taking those out for one test and see if that changes anything.


Re: Why doesn't it attach (3DLabelText) - willsuckformoney - 02.11.2010

pawn Код:
format(string, sizeof(string), "HOHO : %s [NOOB]\n%d", name, Okay[playerid]);
label[playerid] = Create3DTextLabel(string, Lightblue,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
Attempt that.