3DText Problems..
#1

OnPlayerConnect:
pawn Код:
format(string, sizeof(string), "%s (ID: %d)", GetTheirName(playerid), playerid);
NameTag[playerid] = Create3DTextLabel(string, WHITE, 0, 0, 0, 15, 0, 0);
OnPlayerSpawn:
pawn Код:
GetPlayerPos(playerid, MyPos[0], MyPos[1], MyPos[2]);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, MyPos[0], MyPos[1], MyPos[2]+1);
Result:



What's wrong with it? :\
Reply
#2

put the last 3 params to 0.0 and see if that works
they're offsets from the player themselves
i had this and it displays above the players head
pawn Код:
Attach3DTextLabelToPlayer(id, playerid, OffsetX, OffsetY, OffsetZ+0.6);
Reply
#3

Quote:
Originally Posted by Hobod
Посмотреть сообщение
put the last 3 params to 0.0 and see if that works
they're offsets from the player themselves
i had this and it displays above the players head
pawn Код:
Attach3DTextLabelToPlayer(id, playerid, OffsetX, OffsetY, OffsetZ+0.6);
Still no luck.
Reply
#4

Just do it like in the example from the wiki
Reply
#5

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Still not working.. Do 3D Text Labels disappear when you alt-tab? Because i'm having to use a sandbox program to multi-log.
Reply
#6

I don't know if this is happening to anyone else, but i haven't been able to attach 3dtext labels to players since 0.3c. Not with or without a streamer. And i have tested many different ways of doing it, some silly like attaching it to a vehicle first. None have worked for me. I've even posted this in the bug report section. (a few months back) I got no replies that helped.
Reply
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
I don't know if this is happening to anyone else, but i haven't been able to attach 3dtext labels to players since 0.3c. Not with or without a streamer. And i have tested many different ways of doing it, some silly like attaching it to a vehicle first. None have worked for me. I've even posted this in the bug report section. (a few months back) I got no replies that helped.
I've always had that problem.
Reply
#8

Still need help.
Reply
#9

Bump.
Reply
#10

Try this:

OnPlayerConnect:
pawn Код:
format(string, sizeof(string), "%s (ID: %d)", GetTheirName(playerid), playerid);
NameTag[playerid] = Create3DTextLabel(string, WHITE, 0, 0, 0, 15, 0, 0);
OnPlayerSpawn:
pawn Код:
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.7);
OnPlayerDisconnect:
pawn Код:
Delete3DTextLabel(NameTag[playerid])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)