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



tag mismatch - Voxel - 14.11.2013

Hello,

im having some trouble with player textdraws, im getting a tag mismatch.
code:
pawn Код:
new Text:tddeaths[MAX_PLAYERS]; //at the top of my script

//under onplayerconnect
tddeaths[playerid] = CreatePlayerTextDraw(playerid, 4.571428, 295.679992, "Deaths: 0"); //line 399 <=====
PlayerTextDrawLetterSize(playerid, tddeaths[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, tddeaths[playerid], 1);
PlayerTextDrawColor(playerid, tddeaths[playerid], -1);
PlayerTextDrawSetShadow(playerid, tddeaths[playerid], 0);
PlayerTextDrawSetOutline(playerid, tddeaths[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, tddeaths[playerid], 255);
PlayerTextDrawFont(playerid, tddeaths[playerid], 1);
PlayerTextDrawSetProportional(playerid, tddeaths[playerid], 1);

//errors
(399) : warning 213: tag mismatch
(400) : warning 213: tag mismatch
(401) : warning 213: tag mismatch
(402) : warning 213: tag mismatch
(403) : warning 213: tag mismatch
(404) : warning 213: tag mismatch
(405) : warning 213: tag mismatch
(406) : warning 213: tag mismatch
(407) : warning 213: tag mismatch
(409) : warning 213: tag mismatch
why am i getting this error? i know a tag mis match means the variable is wrong but i checked other topics and i did the same...


Re: tag mismatch - Konstantinos - 14.11.2013

The tag is PlayerText: not Text:

By going to the SA-MP Wiki: CreatePlayerTextDraw - you could've seen the example it uses.


Re: tag mismatch - Voxel - 14.11.2013

Ah thanks, i was using the wiki but didnt notice that