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



error - div - 20.06.2018

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


Re: error - Miguelch1312 - 20.06.2018

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



Re: error - div - 20.06.2018

the problem still persists


Re: error - Calisthenics - 20.06.2018

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



Re: error - div - 20.06.2018

new PlayerText:TDEditor_PTD[MAX_PLAYERS][5];


Re: error - Calisthenics - 20.06.2018

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