3D Text Label above the head
#1

On very top
pawn Код:
new Text3D:mylabel[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
mylabel[playerid] = CreateDynamic3DTextLabel("My text", White, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(mylabel[playerid], playerid, 0.0, 0.0, 0.3);
OnPlayerDisconnect
pawn Код:
DestroyDynamic3DTextLabel(mylabel[playerid]);
Why is nothing appearing? (Testing with 2 players)
Reply
#2

[If you mean that WHY cant I see the 3D text label above my head]:

You can't see the 3D text on your head but other players can see it.
Reply
#3

Quote:
Originally Posted by ACI
Посмотреть сообщение
[If you mean that WHY cant I see the 3D text label above my head]:

You can't see the 3D text on your head but other players can see it.
It's being tested with 2 players.
Reply
#4

Try to Replace CreateDynamic3DTextLabel with Create3DTextLabel
Also the streamer use DestroyDynamic3DTextLabel not Destroy3DTextLabel
Reply
#5

pawn Код:
new Text3D:test = Create3DTextLabel("Test success!\n Thanks to ACI!", 0x00BFFFAA, 30.0, 40.0, 50.0, 40.0, 0); //Put this at the top.

Attach3DTextLabelToPlayer(test, playerid, 0.0, 0.0, 0.7); // And put this where you want.
Reply
#6

Putting this at top
pawn Код:
new Text3D:test = Create3DTextLabel("Test success!\n Thanks to ACI!", 0x00BFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
crashes whole Pawno.
Reply
#7

Show your white macro. Because if it's clear white you can't see the label. Probably, you know that, if you set your colour to WHITE, you will not be visible on radar.
Reply
#8

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Show your white macro. Because if it's clear white you can't see the label. Probably, you know that, if you set your colour to WHITE, you will not be visible on radar.
It's white indeed
pawn Код:
#define White 0xFFFFFFAA
Reply
#9

pawn Код:
//Put this on top.
new Text3D:playertext[MAX_PLAYERS];

//OnPlayerConnect
playertext[playerid] = Create3DTextLabel("Your Text", WHITE, 30.0, 40.0, 50.0, 40.0, 0);
pawn Код:
#define WHITE 0xFFFFFFFF
Reply
#10

Quote:
Originally Posted by rhds
Посмотреть сообщение
It's white indeed
pawn Код:
#define White 0xFFFFFFAA
Try to use different color. If you're using that one, your label will be created but not visible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)