SA-MP Forums Archive
3D Text Label 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: 3D Text Label tag mismatch (/showthread.php?tid=629892)



3D Text Label tag mismatch - Celson - 05.03.2017

This code:

PHP код:
if(Text3D:label[playerid] != -1
Is giving me this error:

Код:
warning 213: tag mismatch
Here is some of the involved code:

PHP код:
new Text3D:label[MAX_PLAYERS]; 
PHP код:
label[playerid] = Create3DTextLabel("Referee",COLOR_WHITE,0.0,0.0,-100.0,30,0,0); 
Basically I'm trying to set up a system to atatch a label to a player and then be able to remove it. Seems like I need to use an array to be able to remove it for an individual.


Re: 3D Text Label tag mismatch - ball - 05.03.2017

Код:
new Text3D:label[MAX_PLAYERS] = {Text3D:-1, ...};
Код:
if(label[playerid] != Text3D:-1)



Re: 3D Text Label tag mismatch - Celson - 05.03.2017

Thank you it works now. Rep+