3D Text label attached to player? [REP+]
#1

pawn Код:
new string[128];
format(string,sizeof(string),"%s",pName(playerid));
CreatePlayer3DTextLabel(playerid,string,0x9ACD32AA,0.0,0.0,0.7,40.0,playerid,INVALID_VEHICLE_ID,0);
That code doesn't, for some reason, create a label over the players head.
Why?

Thanks.
Reply
#2

pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);
Reply
#3

Doesn't work.
Reply
#4

Sorry my fault.
pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new Text3D:PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);
Reply
#5

Quote:
Originally Posted by OxyG3N
Посмотреть сообщение
Sorry my fault.
pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new Text3D:PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);
Already tried. Not working.
Reply
#6

pawn Код:
new string[MAX_PLAYER_NAME];
new Text3D:PlayerLabel[MAX_PLAYERS];
format(string,sizeof(string),"%s",pName(playerid));
PlayerLabel[playerid] = Create3DTextLabel(string, COLOR, 0.0, 0.0, 0.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.3);
Reply
#7

Doesn't work.
Reply
#8

Only other players will see label wich are attached to your head.
Reply
#9

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)