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=624044)
tag mismatch -
SukMathcuck - 09.12.2016
Good night, I'm in trouble, what's the reason for this warning? Before that was not happening.
Quote:
\gamemode RP\gamemodes\gamemode2.pwn(223) : warning 213: tag mismatch
|
PHP код:
for(new i = 0; i < 9; i++)
{
TextDrawHideForPlayer(playerid, PlayerData[playerid][pTextDraws][i]);
}
Re: tag mismatch -
GoldenLion - 09.12.2016
When you create pTextDraws, do you have PlayerText: in front of it? Like PlayerText: pTextDraws[9].
There's written about that in wiki:
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
Re: tag mismatch -
AroseKhanNiazi - 10.12.2016
^He is using normal textdraws but I suggest using player textdraws here.
Re: tag mismatch - iLearner - 10.12.2016
Try PlayerTextDrawShow instead of TextDrawHideForPlayer.
Re: tag mismatch -
SukMathcuck - 10.12.2016
Quote:
Originally Posted by iLearner
Try PlayerTextDrawShow instead of TextDrawHideForPlayer.
|
The error has been removed, it worked, but it is to activate the textdraw and not disable it
PHP код:
for (new i = 0; i < 9; i++) PlayerTextDrawShow(playerid, PlayerData[playerid][pTextDraws][i]);
Re: tag mismatch -
SukMathcuck - 10.12.2016
up? help-me, here is my only support!
Re: tag mismatch -
Freaksken - 10.12.2016
Go to the
PlayerTextDrawShow wiki page, there's a bunch of related functions linked.
Which one could it be? (Hint: it's the first one.)
Using the wiki, ******, or in this case even common sense, helps a lot.
Re: tag mismatch -
SukMathcuck - 10.12.2016
Quote:
Originally Posted by Freaksken
Go to the PlayerTextDrawShow wiki page, there's a bunch of related functions linked.
Which one could it be? (Hint: it's the first one.)
Using the wiki, ******, or in this case even common sense, helps a lot.
|
Then it is resolved, reputed, closed topic!
Re: tag mismatch -
AroseKhanNiazi - 14.12.2016
Just another thing stop using [playerid] with PlayerTextdraws it's like if you have 100 MAX_PLAYERS
You are creating 100x100 textdraws with just adding [MAX_PLAYERS] in player textdraws
this code would be like this;
Код:
for(new i = 0; i < 9; i++)
{
PlayerTextDrawHide(playerid, PlayerData[pTextDraws][i]);
}
Don't forgot to destroy when you leave it.