textdraw tag mismatch
#1

I am getting a tag mismatch idk why.

Код:
new Text:dmarenatd;
dmarenatd = CreatePlayerTextDraw(playerid,2.5 ,211 , "blah"); //error line
thanks.
Reply
#2

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
I am getting a tag mismatch idk why.

Код:
new Text:dmarenatd;
dmarenatd = CreatePlayerTextDraw(playerid,2.5 ,211 , "blah"); //error line
thanks.
Код:
new PlayerText:dmarenatd[MAX_PLAYERS];

dmarenatd[playerid] = CreatePlayerTextDraw(playerid,2.5 ,211 , "blah");
Reply
#3

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
I am getting a tag mismatch idk why.

Код:
new Text:dmarenatd;
dmarenatd = CreatePlayerTextDraw(playerid,2.5 ,211 , "blah"); //error line
thanks.
You are creating player textdraw so it means that you should change that
Код:
new Text:dmarenatd;
To
Код:
new PlayerText:dmarenatd;
Reply
#4

same problem with this
Код:
new PlayerText3D:killingspreeonhead[MAX_PLAYERS];
killingspreeonhead[playerid] = CreatePlayer3DTextLabel(playerid,str, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(killingspreeonhead[playerid], playerid, 0.0, 0.0, 0.7); //error line.
Reply
#5

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
same problem with this
Код:
new PlayerText3D:killingspreeonhead[MAX_PLAYERS];
killingspreeonhead[playerid] = CreatePlayer3DTextLabel(playerid,str, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(killingspreeonhead[playerid], playerid, 0.0, 0.0, 0.7); //error line.
Код:
new Text3D:killingspreeonhead[MAX_PLAYERS];
killingspreeonhead[playerid] = Create3DTextLabel(str, 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(killingspreeonhead[playerid], playerid, 0.0, 0.0, 0.7);
Reply
#6

Player3DTextLabel just visible to player you make it for him [ not for players ] so I think what you're trying to do should be like this:

PHP код:
new Text3D:killingspreeonhead[MAX_PLAYERS];
killingspreeonhead[playerid] = Create3DTextLabel(str0x008080FF30.040.050.040.00);
Attach3DTextLabelToPlayer(killingspreeonhead[playerid], playerid0.00.00.7); 
Reply
#7

I want it for him. If i make it globally then if i get kill it will change other players also.
Reply
#8

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
I want it for him. If i make it globally then if i get kill it will change other players also.
No it won't, you'r assigning a separate ID for each player's 3D label, hence why [MAX_PLAYERS] is defined at the end. So each 3D Label will function individually according to your use for it.

Using CreatePlayer3DTextLabel makes the label ONLY visible for the player you created it for, meaning no one else will see it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)