Tag Mismatch
#1

pawn Код:
new PlayerText3D:PlayerLabel[MAX_PLAYERS];

    PlayerLabel[playerid] = CreatePlayer3DTextLabel(playerid, " ",COLOR_WHITE,30.0,40.0,50.0,40.0);
    Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.0); // error line
Tag Mismatch on that line. Howcome? I've checked the wiki tutorials
Reply
#2

pawn Код:
new Text3D:PlayerLabel[MAX_PLAYERS];
try this
Reply
#3

I will still get errors, I'm trying to work with Player3DText's not with normal 3DText's
Reply
#4

oh sorry , never worked with them but try give a search
Reply
#5

Код:
new Text3D:label[MAX_PLAYERS];
try
Reply
#6

Are you kidding me? You just said the SAME thing as what the other guy said .. -.-

NO, it will not do it.
Reply
#7

Quote:
Originally Posted by Antonio [G-RP]
Посмотреть сообщение
Are you kidding me? You just said the SAME thing as what the other guy said .. -.-

NO, it will not do it.
DUDE LOOK AGAIN!
Reply
#8

No tested sorry.
Try:
pawn Код:
new PlayerText3D:PlayerLabel[MAX_PLAYERS];

PlayerLabel[playerid] = CreatePlayer3DTextLabel(playerid, "bla", -1, 30.0, 40.0, 50.0, 40.0, playerid);
CreatePlayer3DTextLabel
Reply
#9

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer look at this man wow
Reply
#10

@smeti , it's the next line that's the problem.
@elchapo , k wut?
Reply
#11

check out the example just try it and check
Reply
#12

I tried his, removed the error line and got no errors. Hopefully it works, will test tomorrow.
Reply
#13

Attach3DTextLabelToPlayer is for normal 3D text labels, not player 3D text labels.

If you check the wiki, you'll see that Attach3DTextLabelToPlayer only expects variables with the keyword 'Text3D' for the first variable.

You can't just attach player 3D text labels to yourself, you won't see them. CreatePlayer3DTextLabel creates a 3D text label for one player and only that one player can see it, Attach3DTextLabelToPlayer attaches the 3D text label to a player like a name tag, so only others can see it, but not the character it's attached to. It's only logical. Create a normal 3D text label and attach it.
Reply
#14

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Attach3DTextLabelToPlayer is for normal 3D text labels, not player 3D text labels.

If you check the wiki, you'll see that Attach3DTextLabelToPlayer only expects variables with the keyword 'Text3D' for the first variable.

You can't just attach player 3D text labels to yourself, you won't see them. CreatePlayer3DTextLabel creates a 3D text label for one player and only that one player can see it, Attach3DTextLabelToPlayer attaches the 3D text label to a player like a name tag, so only others can see it, but not the character it's attached to. It's only logical. Create a normal 3D text label and attach it.
Thank you, very much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)