SA-MP Forums Archive
I Need Help !!!!!! 3DTextLabel - 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: I Need Help !!!!!! 3DTextLabel (/showthread.php?tid=455196)



I Need Help !!!!!! 3DTextLabel - aezakmi1o - 31.07.2013

I would like to create a text-based 3DTextLabel to show the image of each person, so I try to create a custom.
But the problem warning 213: tag mismatch would like to ask a question.

Код:
if(PlayerInfo[playerid][pGang] == 1)
	{
     	new Float:X, Float:Y, Float:Z;
    	GetPlayerPos(playerid, X, Y, Z);
    	GangM[playerid] = Create3DTextLabel("%s",PlayerInfo[playerid][pLabel],0x00FFFFFF,X, Y, Z+2.0,20.0,1); <<2860
     	Attach3DTextLabelToPlayer(GangM[playerid],playerid,0,0,1.2);
	}
Код:
D:\SAMP 0.3e\SAMP 0.3e\gamemodes\Limited-1.0.pwn(2860) : warning 213: tag mismatch
Help me with edge thanks.


Re: I Need Help !!!!!! 3DTextLabel - SuperViper - 01.08.2013

pawn Код:
GangM[playerid] = Create3DTextLabel(PlayerInfo[playerid][pLabel],0x00FFFFFF,X, Y, Z+2.0,20.0,1);



Re: I Need Help !!!!!! 3DTextLabel - Jstylezzz - 01.08.2013

How did you declare GangM[MAX_PLAYERS]? For 3DText stuff you should declare it like this:
pawn Код:
new Text3D:YourVarName;
In your case, it would be
pawn Код:
new Text3D:GangM[MAX_PLAYERS];
Either this, or the thing SuperViper said is your problem probably.


Re: I Need Help !!!!!! 3DTextLabel - aezakmi1o - 01.08.2013

Thanks for the advice.