warning 213: tag mismatch
#1

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??
Reply
#2

try

new Text3D:Player3d[MAX_PLAYERS];
Reply
#3

not worked
Reply
#4

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?
Reply
#5

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
Reply
#6

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...
Reply
#7

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); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)