warning 213: tag mismatch
#1

Error:
PHP код:
(523) : warning 213tag mismatch
(524) : warning 213tag mismatch
(525) : warning 213tag mismatch
(526) : warning 213tag mismatch
...............................................
(
557) : warning 213tag mismatch
(558) : warning 213tag mismatch
(559) : warning 213tag mismatch 
And the code:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/tableta"cmdtexttrue10) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
TextDrawShowForPlayer(playeridTextdraw0[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw1[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw2[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw3[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw4[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw5[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw6[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw7[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw8[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw9[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw10[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw11[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw12[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw13[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw14[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw15[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw16[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw17[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw18[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw19[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw20[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw21[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw22[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw23[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw24[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw25[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw26[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw27[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw28[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw29[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw30[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw31[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw32[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw33[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw34[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw35[playerid]);
            
TextDrawShowForPlayer(playeridTextdraw36[playerid]);
        }
        return 
1;
    }
    return 
0;

Reply
#2

When you created your TextDraws did you add: [MAX_PLAYERS] to the end of it?
Reply
#3

Quote:
Originally Posted by knackworst
Посмотреть сообщение
When you created your TextDraws did you add: [MAX_PLAYERS] to the end of it?
Yeah:
PHP код:
new PlayerText:Textdraw0[MAX_PLAYERS];
new 
PlayerText:Textdraw1[MAX_PLAYERS];
new 
PlayerText:Textdraw2[MAX_PLAYERS];
new 
PlayerText:Textdraw3[MAX_PLAYERS];
new 
PlayerText:Textdraw4[MAX_PLAYERS];
new 
PlayerText:Textdraw5[MAX_PLAYERS];
new 
PlayerText:Textdraw6[MAX_PLAYERS];
new 
PlayerText:Textdraw7[MAX_PLAYERS];
new 
PlayerText:Textdraw8[MAX_PLAYERS];
new 
PlayerText:Textdraw9[MAX_PLAYERS];
new 
PlayerText:Textdraw10[MAX_PLAYERS];
new 
PlayerText:Textdraw11[MAX_PLAYERS];
new 
PlayerText:Textdraw12[MAX_PLAYERS];
new 
PlayerText:Textdraw13[MAX_PLAYERS];
new 
PlayerText:Textdraw14[MAX_PLAYERS];
new 
PlayerText:Textdraw15[MAX_PLAYERS];
new 
PlayerText:Textdraw16[MAX_PLAYERS];
new 
PlayerText:Textdraw17[MAX_PLAYERS];
new 
PlayerText:Textdraw18[MAX_PLAYERS];
new 
PlayerText:Textdraw19[MAX_PLAYERS];
new 
PlayerText:Textdraw20[MAX_PLAYERS];
new 
PlayerText:Textdraw21[MAX_PLAYERS];
new 
PlayerText:Textdraw22[MAX_PLAYERS];
new 
PlayerText:Textdraw23[MAX_PLAYERS];
new 
PlayerText:Textdraw24[MAX_PLAYERS];
new 
PlayerText:Textdraw25[MAX_PLAYERS];
new 
PlayerText:Textdraw26[MAX_PLAYERS];
new 
PlayerText:Textdraw27[MAX_PLAYERS];
new 
PlayerText:Textdraw28[MAX_PLAYERS];
new 
PlayerText:Textdraw29[MAX_PLAYERS];
new 
PlayerText:Textdraw30[MAX_PLAYERS];
new 
PlayerText:Textdraw31[MAX_PLAYERS];
new 
PlayerText:Textdraw32[MAX_PLAYERS];
new 
PlayerText:Textdraw33[MAX_PLAYERS];
new 
PlayerText:Textdraw34[MAX_PLAYERS];
new 
PlayerText:Textdraw35[MAX_PLAYERS];
new 
PlayerText:Textdraw36[MAX_PLAYERS];
new 
PlayerText:Textdraw37[MAX_PLAYERS]; 
Reply
#4

Change:
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
to:
pawn Код:
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
Do the same for the rest too. They're per-player textdraws.
Reply
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Change:
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
to:
pawn Код:
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
Do the same for the rest too. They're per-player textdraws.
Thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)