tag mismatch
#1

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...
Reply
#2

The tag is PlayerText: not Text:

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)