tag mismatch
#1

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 09i++)
    {
        
TextDrawHideForPlayer(playeridPlayerData[playerid][pTextDraws][i]);
    } 
Reply
#2

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
Reply
#3

^He is using normal textdraws but I suggest using player textdraws here.
Reply
#4

Try PlayerTextDrawShow instead of TextDrawHideForPlayer.
Reply
#5

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 09i++) PlayerTextDrawShow(playeridPlayerData[playerid][pTextDraws][i]); 
Reply
#6

up? help-me, here is my only support!
Reply
#7

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

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!
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)