Create3DTextLabel
#1

Hi, what is wrong with this?

new Text3D: Label_Level[MAX_PLAYERS];

onplayerconnect
Label_Level[playerid]=INVALID_3DTEXT_ID;

onplayerdisconnect
Delete3DTextLabel(Label_Level[playerid]);

Login Command:
new Float,Float:y,
GetPlayerPos(playerid,x,y,z);
Label_Level[playerid]=Create3DTextLabel(str, GetPlayerColor(playerid), x, y, z+3,40,0,1);
Attach3DTextLabelToPlayer(Label_Level[playerid], playerid, 0, 0, 0, 0);

Onplayerupdate
Update3DTextLabelText(Label_Level[playerid],GetPlayerColor(playerid),str2);


it compile but I can't see anything, and my friends too.. Can someone help me please? I want something like.. when you are logged in then 3DText needs to appear above your nick.
Reply
#2

Quote:
Originally Posted by Seif_
You can't see 3D texts attached to you, only others can see it.
Oh my days! Thats why I wrote,
Quote:

it compile but I can't see anything, and my friends too..
EDIT:
I've changed to Label_Level[playerid]=Create3DTextLabel(str, GetPlayerColor(playerid), 0, 0, 0+2,100,0,1); and it seems to be working but not really, i could see my friends Label, but he couldn't see mine ;/ . Don't know why , can someone help? thanks
Reply
#3

Label_Level[playerid]=Create3DTextLabel(str, GetPlayerColor(playerid), x, y, z+3,40,0,1);

must be

Label_Level[playerid]=CreatePlayer3DTextLabel(playerid, str, GetPlayerColor(playerid), x, y, z+3,40,0,1);

and , don't do that in OnPlayerLogin , do it in OnPlayerSpawn , because when you logged to server , your coords are seted to: x = 0.0 ; y = 0.0 ; z = 0.0
Reply
#4

okay, I tried but it still not working, its not working at all . Can someone help? Or do TUT about this staff? Thanks..




Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)