#1

my textdraw hiding code
Код:
if(pInfo[playerid][pWanted] <= 0)
	{
	TextDrawHideForPlayer(playerid, TDEditor_PTD[playerid][2]);
	}

warning
Код:
(721) : warning 213: tag mismatch
the problem is in TextdrawHideForPlayer
Reply
#2

Just put a tab to it, like this
Код:
if(pInfo[playerid][pWanted] <= 0)
	{
	    TextDrawHideForPlayer(playerid, TDEditor_PTD[playerid][2]);
	}
Reply
#3

the problem still persists
Reply
#4

Global textdraws need to have Text: tag
pawn Код:
new Text: TDEditor_PTD[MAX_PLAYERS][SIZE_OF_SECOND_DIMENSION_HERE];
Reply
#5

new PlayerText:TDEditor_PTD[MAX_PLAYERS][5];
Reply
#6

You need to choose if you want global or per-player textdraws. Will it be the same for everyone? If not, make them per-player as you currently have them but change global functions to per-player functions.

You can find a list of them at the bottom:
https://sampwiki.blast.hk/wiki/PlayerTextDrawHide
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)