PDA

View Full Version : warning 213: tag mismatch


sn0p
01/02/2015, 12:47 PM
TextDrawHideForPlayer(playerid, vmegz0[playerid]); i tried in many ways but still didnt found were is problem

BroZeus
01/02/2015, 12:49 PM
The declaration line of the variable vmegz0 should be like this

new Text:vmegz0[MAX_PLAYERS];

sn0p
01/02/2015, 12:54 PM
The declaration line of the variable vmegz0 should be like this

in my case im creating textdraw for player
new PlayerText:vmegz0[MAX_PLAYERS];

BroZeus
01/02/2015, 12:58 PM
In that case use this -
PlayerTextDrawHide(playerid, vmegz0[playerid]);
Use PlayerTextDrawHide to hide player textdraws

sn0p
01/02/2015, 02:04 PM
In that case use this -
PlayerTextDrawHide(playerid, vmegz0[playerid]);
Use PlayerTextDrawHide to hide player textdraws

Now thesame warnning at
vmegz0[playerid] = CreatePlayerTextDraw(playerid,-222.000000, 331.000000, "New Textdraw");
PlayerTextDrawBackgroundColor(playerid,vmegz0[playerid], 255);
PlayerTextDrawFont(playerid,vmegz0[playerid], 1);
PlayerTextDrawLetterSize(playerid,vmegz0[playerid], 0.900000, 16.100000);
PlayerTextDrawColor(playerid,vmegz0[playerid], -1);
PlayerTextDrawSetOutline(playerid,vmegz0[playerid], 0);
PlayerTextDrawSetProportional(playerid,vmegz0[playerid], 1);
PlayerTextDrawSetShadow(playerid,vmegz0[playerid], 1);
PlayerTextDrawUseBox(playerid,vmegz0[playerid], 1);
PlayerTextDrawBoxColor(playerid,vmegz0[playerid], 255);
PlayerTextDrawTextSize(playerid,vmegz0[playerid], 653.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,vmegz0[playerid], 0); :D

BroZeus
01/02/2015, 02:07 PM
Use this for declaration -
new PlayerText:vmegz0[MAX_PLAYERS];
And this for hiding -
PlayerTextDrawHide(playerid, vmegz0[playerid]);

sn0p
01/02/2015, 02:21 PM
oh yea thanks