Text Label Help
#1

Hi guys,
I got a problem.Problem is Text Label codes, i used everyways..But, still SAME ERROR, SAME ERROR !
Whatever, i'll give the codes..I hope, somebody help me.

Error is:
Код:
warning 213: tag mismatch
There is one error here.

Error line is:
pawn Код:
new PlayerText3D:Tanisma1; // Global Variable.
new Float:X, Float:Y, Float:Z, str[50];
GetPlayerPos(playerid,X,Y,Z);
format(str,50,"{FFFFFF}Tanınmıyor[{F60000}%d{FFFFFF}]",playerid);
Tanisma1 = CreatePlayer3DTextLabel(playerid,str, -1, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(Tanisma1,playerid, 0.0, 0.0, 0.2); // Here, this line is error line.
I waiting for help guys !
Reply
#2

replace

pawn Код:
new Tanisma1;
with

pawn Код:
new Text3D:Tanisma1;
Reply
#3

Now, i got 3 warning.

warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch

pawn Код:
Tanisma1 = CreatePlayer3DTextLabel(playerid,str, -1, 30.0, 40.0, 50.0, 40.0, 0); // 1st error.
UpdatePlayer3DTextLabelText(playerid,Tanisma1, -1, str); // 2nd error.
UpdatePlayer3DTextLabelText(playerid,Tanisma1,-1,str); // 3rd error.
Reply
#4

Show the definition of Tanisma1.
Reply
#5

pawn Код:
new Text3D:Tanisma1;
Reply
#6

Change it to PlayerText3D:
Reply
#7

Now, i got one warning.
warning 213: tag mismatch

Error:
pawn Код:
Attach3DTextLabelToPlayer(Tanisma1,playerid, 0.0, 0.0, 0.2);
Reply
#8

AttachPlayer3DTextLabelToPlayer doesn't exist, so it can't be done.
Reply
#9

Quote:
Originally Posted by MP2
Посмотреть сообщение
AttachPlayer3DTextLabelToPlayer doesn't exist, so it can't be done.
What doest that mean ?
So, this function doesn't exist.So, what can i do now ?
Reply
#10

What you're trying to do won't work anyway. CreatePlayer3DTextLabel creates a label that is visible only to that specific player. But since labels attached to your own character are not visible to you, no-one will be able to see it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)