Tag Mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag Mismatch (
/showthread.php?tid=246410)
Tag Mismatch -
Antonio [G-RP] - 04.04.2011
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
Re: Tag Mismatch -
Hornet600 - 04.04.2011
pawn Код:
new Text3D:PlayerLabel[MAX_PLAYERS];
try this
Re: Tag Mismatch -
Antonio [G-RP] - 04.04.2011
I will still get errors, I'm trying to work with Player3DText's not with normal 3DText's
Re: Tag Mismatch -
Hornet600 - 04.04.2011
oh sorry , never worked with them but try give a search
Re: Tag Mismatch -
ElChapoGuzman - 04.04.2011
Код:
new Text3D:label[MAX_PLAYERS];
try
Re: Tag Mismatch -
Antonio [G-RP] - 04.04.2011
Are you kidding me? You just said the SAME thing as what the other guy said .. -.-
NO, it will not do it.
Re: Tag Mismatch -
ElChapoGuzman - 04.04.2011
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!
Re: Tag Mismatch -
smeti - 04.04.2011
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
Re: Tag Mismatch -
ElChapoGuzman - 04.04.2011
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer look at this man wow
Re: Tag Mismatch -
Antonio [G-RP] - 04.04.2011
@smeti , it's the next line that's the problem.
@elchapo , k wut?
Re: Tag Mismatch -
ElChapoGuzman - 04.04.2011
check out the example just try it and check
Re: Tag Mismatch -
Antonio [G-RP] - 04.04.2011
I tried his, removed the error line and got no errors. Hopefully it works, will test tomorrow.
Re: Tag Mismatch -
Calgon - 04.04.2011
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.
Re: Tag Mismatch -
Antonio [G-RP] - 04.04.2011
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.