SA-MP Forums Archive
textdraw 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: textdraw tag mismatch (/showthread.php?tid=604498)



textdraw tag mismatch - fuckingcruse - 06.04.2016

I am getting a tag mismatch idk why.

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


Re: textdraw tag mismatch - -CaRRoT - 06.04.2016

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



Re: textdraw tag mismatch - HydraHumza - 06.04.2016

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;



Re: textdraw tag mismatch - fuckingcruse - 06.04.2016

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.



Re: textdraw tag mismatch - -CaRRoT - 06.04.2016

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



Re: textdraw tag mismatch - jlalt - 06.04.2016

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



Re: textdraw tag mismatch - fuckingcruse - 06.04.2016

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


Re: textdraw tag mismatch - -CaRRoT - 06.04.2016

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.