SA-MP Forums Archive
warning 213: 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)
+--- Thread: warning 213: tag mismatch (/showthread.php?tid=660406)



[Solved]warning 213: tag mismatch - xRadical3 - 02.11.2018

Code:
   new PlayerText3D:Player3d[MAX_PLAYERS];
      Player3d[playerid] = CreatePlayer3DTextLabel(playerid,"Label",0x008080FF,0,0,0,40.0);
Attach3DTextLabelToPlayer(Player3d[playerid], playerid, 0.0, 0.0, 0.3);
How To Fix??


Re: warning 213: tag mismatch - playstores - 02.11.2018

try

new Text3D:Player3d[MAX_PLAYERS];


Re: warning 213: tag mismatch - xRadical3 - 02.11.2018

not worked


Re: warning 213: tag mismatch - ISmokezU - 02.11.2018

Quote:
Originally Posted by playstores
View Post
try

new Text3D:Player3d[MAX_PLAYERS];
It's a Player Text

Quote:
Originally Posted by Vizi10
View Post
not worked
What isn't? Is it not showing or something?


Re: warning 213: tag mismatch - xRadical3 - 02.11.2018

Quote:
Originally Posted by ISmokezU
View Post
It's a Player Text



What isn't? Is it not showing or something?
Still show warning 213 and not showing the player lebel


Re: warning 213: tag mismatch - NaS - 02.11.2018

Attaching Player Labels doesn't need a seperate function.

CreatePlayer3DTextLabel already has the "attachedplayer" argument:

Code:
native PlayerText3D:CreatePlayer3DTextLabel(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer=INVALID_PLAYER_ID, attachedvehicle=INVALID_VEHICLE_ID, testLOS=0);
In your code you already set attachedplayer and attachedvehicle to 0. You also set draw_distance to 0 which makes the label invisible at all times.

Another thing is that attaching a per-player label to the player it's created for is useless.
Noone else can see it since it is per-player, and the player which it is created for also cannot see it (you can never see labels attached to yourself)!

If you want this label to be visible to everyone else use a global label, then attach it to the player like suggested already.
Make sure to not use 0.0 for draw_distance...


Re: warning 213: tag mismatch - silenthill - 02.11.2018

Try

PHP Code:
//TOP
new Text3D:Player3d[MAX_PLAYERS];
//command
Player3d[playerid] = Create3DTextLabel("Label",0x008080FF,30.0,40.0,50.0,40.0,1);
Attach3DTextLabelToPlayer(Player3d[playerid], playerid0.00.00.4);