SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/11/2018, 12:23 AM   #1
LeonardoAlberto
Little Clucker
 
Join Date: Nov 2018
Posts: 16
Reputation: 0
Default warning 213: tag mismatch

aqui esta os erros
Code:
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319):warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319) : warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(334) : warning 213: tag mismatch
aqui esta as linhas

Code:
if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw4[playerid])
aqui esta textdraw

Code:
	Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 0.000000, 0.000000, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 640.000000, 448.000000);
	PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw0[playerid], -2139062017);
	PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw0[playerid], 4);

	Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 641.531494, 1.500000, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 49.396297);
	PlayerTextDrawTextSize(playerid, Textdraw1[playerid], -2.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw1[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw1[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw1[playerid], 0);

	Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 36.076148, 174.416641, "LOGAR");
	PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw2[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw2[playerid], true);

	Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 114.445098, 160.166656, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.000000, 4.803704);
	PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 4.559297, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);

	Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 20.146446, 233.916717, "Registrar");
	PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw4[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw4[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);

	Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 113.508056, 220.250061, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 4.933330);
	PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 5.027818, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);

	Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 22.020545, 291.083282, "Creditos");
	PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw6[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true);

	Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 113.039535, 277.999908, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.000000, 4.911484);
	PlayerTextDrawTextSize(playerid, Textdraw7[playerid], 5.964860, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw7[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw7[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw7[playerid], 0);

	Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 37.950248, 354.666687, "Sair");
	PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw8[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw8[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true);

	Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 110.696929, 340.416625, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.000000, 5.012217);
	PlayerTextDrawTextSize(playerid, Textdraw9[playerid], 5.964860, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw9[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw9[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw9[playerid], 0);

	Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 488.668212, 201.250000, "BEM VINDO");
	PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.622414, 2.650002);
	PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw12[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1);

	Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 612.951660, 227.250000, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.000000, -0.316666);
	PlayerTextDrawTextSize(playerid, Textdraw13[playerid], 485.730590, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw13[playerid], -1);
	PlayerTextDrawUseBox(playerid, Textdraw13[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw13[playerid], -1061109505);
	PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 0);
	PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 65535);
	PlayerTextDrawFont(playerid, Textdraw13[playerid], 0);

	Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 116.193267, 387.916687, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, Textdraw14[playerid], 0.468521, -231.000030);
	PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw14[playerid], 255);
	PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw14[playerid], 4);
    CarregarLogin(playerid);
	return 1;

}
aqui esta o sistema

Code:
public OnPlayerClickTextDraw(playerid, Text:clickedid)

    if(_:clickedid != INVALID_TEXT_DRAW)
    {
      if(clickedid == Textdraw2[playerid])
      {
			  new plname[MAX_PLAYER_NAME];
              GetPlayerName(playerid,loginname,sizeof(loginname));
              GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                 // SEU SISTEMA DE LOGIN
                        }
                        else
                        {
              ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você não tem uma conta!", "Ok", "");
              }
              return 1;
      }
      if(clickedid == Textdraw4[playerid])
               {
              new plname[MAX_PLAYER_NAME];
			  GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                     ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você tem uma conta, logue-se!", "Ok", "");
              }
              else
              {
                 // SEU SISTEMA DE LOGIN AQUI
                        }
              return 1;
      }
      if(clickedid == Textdraw4[playerid])
      {
                SendClientMessage(playerid, 0xFFFFFFAA, "Você foi kickado por não se registrar/logar!");
      Kick(playerid);
      }
      return 1;
   }
        return 1;
}
RESOLVIDO

Last edited by LeonardoAlberto; 23/11/2018 at 05:12 PM.
LeonardoAlberto is offline   Reply With Quote
Old 21/11/2018, 01:38 AM   #2
Electrifying
Big Clucker
 
Join Date: Sep 2018
Location: Pernambuco
Posts: 164
Reputation: 2
Default Re: warning 213: tag mismatch

Quote:
Originally Posted by LeonardoAlberto View Post
aqui esta os erros
Code:
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319):warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319) : warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(334) : warning 213: tag mismatch
aqui esta as linhas

Code:
if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw4[playerid])
aqui esta textdraw

Code:
	Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 0.000000, 0.000000, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 640.000000, 448.000000);
	PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw0[playerid], -2139062017);
	PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw0[playerid], 4);

	Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 641.531494, 1.500000, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 49.396297);
	PlayerTextDrawTextSize(playerid, Textdraw1[playerid], -2.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw1[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw1[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw1[playerid], 0);

	Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 36.076148, 174.416641, "LOGAR");
	PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw2[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw2[playerid], true);

	Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 114.445098, 160.166656, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.000000, 4.803704);
	PlayerTextDrawTextSize(playerid, Textdraw3[playerid], 4.559297, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw3[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw3[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);

	Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 20.146446, 233.916717, "Registrar");
	PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw4[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw4[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);

	Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 113.508056, 220.250061, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.000000, 4.933330);
	PlayerTextDrawTextSize(playerid, Textdraw5[playerid], 5.027818, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw5[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw5[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw5[playerid], 0);

	Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 22.020545, 291.083282, "Creditos");
	PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw6[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true);

	Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 113.039535, 277.999908, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.000000, 4.911484);
	PlayerTextDrawTextSize(playerid, Textdraw7[playerid], 5.964860, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw7[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw7[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw7[playerid], 0);

	Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 37.950248, 354.666687, "Sair");
	PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.449999, 1.600000);
	PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw8[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw8[playerid], 3);
	PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);
	PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true);

	Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 110.696929, 340.416625, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.000000, 5.012217);
	PlayerTextDrawTextSize(playerid, Textdraw9[playerid], 5.964860, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawUseBox(playerid, Textdraw9[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw9[playerid], 102);
	PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw9[playerid], 0);

	Textdraw12[playerid] = CreatePlayerTextDraw(playerid, 488.668212, 201.250000, "BEM VINDO");
	PlayerTextDrawLetterSize(playerid, Textdraw12[playerid], 0.622414, 2.650002);
	PlayerTextDrawAlignment(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw12[playerid], -1);
	PlayerTextDrawSetShadow(playerid, Textdraw12[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, Textdraw12[playerid], 51);
	PlayerTextDrawFont(playerid, Textdraw12[playerid], 1);
	PlayerTextDrawSetProportional(playerid, Textdraw12[playerid], 1);

	Textdraw13[playerid] = CreatePlayerTextDraw(playerid, 612.951660, 227.250000, "usebox");
	PlayerTextDrawLetterSize(playerid, Textdraw13[playerid], 0.000000, -0.316666);
	PlayerTextDrawTextSize(playerid, Textdraw13[playerid], 485.730590, 0.000000);
	PlayerTextDrawAlignment(playerid, Textdraw13[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw13[playerid], -1);
	PlayerTextDrawUseBox(playerid, Textdraw13[playerid], true);
	PlayerTextDrawBoxColor(playerid, Textdraw13[playerid], -1061109505);
	PlayerTextDrawSetShadow(playerid, Textdraw13[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw13[playerid], 0);
	PlayerTextDrawBackgroundColor(playerid, Textdraw13[playerid], 65535);
	PlayerTextDrawFont(playerid, Textdraw13[playerid], 0);

	Textdraw14[playerid] = CreatePlayerTextDraw(playerid, 116.193267, 387.916687, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, Textdraw14[playerid], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, Textdraw14[playerid], 0.468521, -231.000030);
	PlayerTextDrawAlignment(playerid, Textdraw14[playerid], 1);
	PlayerTextDrawColor(playerid, Textdraw14[playerid], 255);
	PlayerTextDrawSetShadow(playerid, Textdraw14[playerid], 0);
	PlayerTextDrawSetOutline(playerid, Textdraw14[playerid], 0);
	PlayerTextDrawFont(playerid, Textdraw14[playerid], 4);
    CarregarLogin(playerid);
	return 1;

}
aqui esta o sistema

Code:
public OnPlayerClickTextDraw(playerid, Text:clickedid)

    if(_:clickedid != INVALID_TEXT_DRAW)
    {
      if(clickedid == Textdraw2[playerid])
      {
			  new plname[MAX_PLAYER_NAME];
              GetPlayerName(playerid,loginname,sizeof(loginname));
              GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                 // SEU SISTEMA DE LOGIN
                        }
                        else
                        {
              ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você não tem uma conta!", "Ok", "");
              }
              return 1;
      }
      if(clickedid == Textdraw4[playerid])
               {
              new plname[MAX_PLAYER_NAME];
			  GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                     ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você tem uma conta, logue-se!", "Ok", "");
              }
              else
              {
                 // SEU SISTEMA DE LOGIN AQUI
                        }
              return 1;
      }
      if(clickedid == Textdraw4[playerid])
      {
                SendClientMessage(playerid, 0xFFFFFFAA, "Você foi kickado por não se registrar/logar!");
      Kick(playerid);
      }
      return 1;
   }
        return 1;
}
PHP Code:
if(clickedid == PlayerText:Textdraw2[playerid])
 if(
clickedid == PlayerText:Textdraw2[playerid])
 if(
clickedid == PlayerText:Textdraw4[playerid]) 
Electrifying is offline   Reply With Quote
Old 21/11/2018, 01:56 AM   #3
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Posts: 738
Reputation: 52
Default Re: warning 213: tag mismatch

Você criou uma PlayerTextdraw. Então deve usar a callback OnPlayerClickPlayerTextDraw ao invés da OnPlayerClickTextDraw.
RiqueP is offline   Reply With Quote
Old 21/11/2018, 08:46 AM   #4
LeonardoAlberto
Little Clucker
 
Join Date: Nov 2018
Posts: 16
Reputation: 0
Default Re: warning 213: tag mismatch

Quote:
Originally Posted by RiqueP View Post
Você criou uma PlayerTextdraw. Então deve usar a callback OnPlayerClickPlayerTextDraw ao invés da OnPlayerClickTextDraw.
deu isso ai velho

Code:
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(299) : error 025: function heading differs from prototype
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(303) : warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(319) : warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(334) : warning 213: tag mismatch
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(337) : warning 217: loose indentation
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(341) : warning 209: function "OnPlayerClickPlayerTextDraw" should return a value
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(341) : error 010: invalid function or declaration
LeonardoAlberto is offline   Reply With Quote
Old 21/11/2018, 03:29 PM   #5
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Posts: 738
Reputation: 52
Default Re: warning 213: tag mismatch

Me mostre as linhas que estão os erros
RiqueP is offline   Reply With Quote
Old 21/11/2018, 05:43 PM   #6
LeonardoAlberto
Little Clucker
 
Join Date: Nov 2018
Posts: 16
Reputation: 0
Default Re: warning 213: tag mismatch

Quote:
Originally Posted by RiqueP View Post
Me mostre as linhas que estão os erros
Code:
public OnPlayerClickPlayerTextDraw(playerid, Text:clickedid)

    if(_:clickedid != INVALID_TEXT_DRAW)
    {
      if(clickedid == PlayerText:Textdraw2[playerid])
      {
			  new plname[MAX_PLAYER_NAME];
              GetPlayerName(playerid,loginname,sizeof(loginname));
              GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                 // SEU SISTEMA DE LOGIN
                        }
                        else
                        {
              ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você não tem uma conta!", "Ok", "");
              }
              return 1;
      }
      if(clickedid == PlayerText:Textdraw4[playerid])
               {
              new plname[MAX_PLAYER_NAME];
			  GetPlayerName(playerid, plname, sizeof(plname));
              format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                     ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Você tem uma conta, logue-se!", "Ok", "");
              }
              else
              {
                 // SEU SISTEMA DE LOGIN AQUI
                        }
              return 1;
      }
      if(clickedid == PlayerText:Textdraw4[playerid])
      {
                SendClientMessage(playerid, 0xFFFFFFAA, "Você foi kickado por não se registrar/logar!");
      Kick(playerid);
      }
      return 1;
   }
        return 1;
}
LeonardoAlberto is offline   Reply With Quote
Old 22/11/2018, 08:35 PM   #7
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Posts: 738
Reputation: 52
Default Re: warning 213: tag mismatch

PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid) {
    if(
_:playertextid != INVALID_TEXT_DRAW) {
        if(
playertextid == Textdraw2[playerid]) {
            new 
plname[MAX_PLAYER_NAME];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
GetPlayerName(playeridplnamesizeof(plname));
            
format(gstring,sizeof(gstring), "Contas/%s.ini"plname);
            if(
DOF2_FileExists(gstring)) {
                
// SEU SISTEMA DE LOGIN
            
}
            else {
                
ShowPlayerDialog(playerid9632DIALOG_STYLE_MSGBOX"ERRO""{FFFFFF}Você não tem uma conta!""Ok""");
            }
            return 
1;
        }
        if(
playertextid == Textdraw4[playerid]) {
            new 
plname[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplnamesizeof(plname));
            
format(gstring,sizeof(gstring), "Contas/%s.ini"plname);
            if(
DOF2_FileExists(gstring)) {
                
ShowPlayerDialog(playerid9632DIALOG_STYLE_MSGBOX"ERRO""{FFFFFF}Você tem uma conta, logue-se!""Ok""");
            }
            else {
                
// SEU SISTEMA DE LOGIN AQUI
            
}
            return 
1;
        }
        if(
playertextid == Textdraw4[playerid]) {
            
SendClientMessage(playerid0xFFFFFFAA"Você foi kickado por não se registrar/logar!");
            
Kick(playerid);
        }
        return 
1;
    }
    return 
1;

Mostre os erros que sobrarem
RiqueP is offline   Reply With Quote
Old 23/11/2018, 06:12 AM   #8
LeonardoAlberto
Little Clucker
 
Join Date: Nov 2018
Posts: 16
Reputation: 0
Default Re: warning 213: tag mismatch

Quote:
Originally Posted by RiqueP View Post
PHP Code:
public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid) {
    if(
_:playertextid != INVALID_TEXT_DRAW) {
        if(
playertextid == Textdraw2[playerid]) {
            new 
plname[MAX_PLAYER_NAME];
            
GetPlayerName(playerid,loginname,sizeof(loginname));
            
GetPlayerName(playeridplnamesizeof(plname));
            
format(gstring,sizeof(gstring), "Contas/%s.ini"plname);
            if(
DOF2_FileExists(gstring)) {
                
// SEU SISTEMA DE LOGIN
            
}
            else {
                
ShowPlayerDialog(playerid9632DIALOG_STYLE_MSGBOX"ERRO""{FFFFFF}Você não tem uma conta!""Ok""");
            }
            return 
1;
        }
        if(
playertextid == Textdraw4[playerid]) {
            new 
plname[MAX_PLAYER_NAME];
            
GetPlayerName(playeridplnamesizeof(plname));
            
format(gstring,sizeof(gstring), "Contas/%s.ini"plname);
            if(
DOF2_FileExists(gstring)) {
                
ShowPlayerDialog(playerid9632DIALOG_STYLE_MSGBOX"ERRO""{FFFFFF}Você tem uma conta, logue-se!""Ok""");
            }
            else {
                
// SEU SISTEMA DE LOGIN AQUI
            
}
            return 
1;
        }
        if(
playertextid == Textdraw4[playerid]) {
            
SendClientMessage(playerid0xFFFFFFAA"Você foi kickado por não se registrar/logar!");
            
Kick(playerid);
        }
        return 
1;
    }
    return 
1;

Mostre os erros que sobrarem
Mano Vlw Muito Velho agora so uma pergunta como faço para selecionar uma textdraw sozinha poque quando eu posso o mouse seleciona tudo mano
LeonardoAlberto is offline   Reply With Quote
Old 23/11/2018, 08:04 AM   #9
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Posts: 738
Reputation: 52
Default Re: warning 213: tag mismatch

Vá no trecho onde está criando as textdraw (como é playertextdraw, provavelmente em OnPlayerConnect), e coloque isso junto as textdraw clicaveis.
PHP Code:
PlayerTextDrawTextSize(playeridVARIAVEL DA TEXTDRAW420.010.0); 
Caso ela não fique selecionável, o valor 420.0 e/ou 10.0 logo a cima, você deve ir ajustando até funcionar corretamente.

420.0 = X
10.0 = Y
RiqueP is offline   Reply With Quote
Old 23/11/2018, 05:09 PM   #10
LeonardoAlberto
Little Clucker
 
Join Date: Nov 2018
Posts: 16
Reputation: 0
Default Re: warning 213: tag mismatch

Quote:
Originally Posted by RiqueP View Post
Vá no trecho onde está criando as textdraw (como é playertextdraw, provavelmente em OnPlayerConnect), e coloque isso junto as textdraw clicaveis.
PHP Code:
PlayerTextDrawTextSize(playeridVARIAVEL DA TEXTDRAW420.010.0); 
Caso ela não fique selecionável, o valor 420.0 e/ou 10.0 logo a cima, você deve ir ajustando até funcionar corretamente.

420.0 = X
10.0 = Y
Ae Mano Vlw Ajudou Muito Estava com muita dificuldade
LeonardoAlberto is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : wa Dawkin Scripting Help 14 30/07/2018 01:58 PM
warning 213: tag mismatch Pachino Scripting Help 2 07/04/2018 11:29 PM
Warning 213: Tag mismatch and warning 202: number of arguments does not match definition ConnorG Scripting Help 5 12/01/2018 03:32 AM
warning 213: tag mismatch Balcan Fox Scripting Help 0 16/09/2015 02:59 PM
Help warning 213: tag mismatch Broker Scripting Help 4 26/03/2013 05:33 PM


All times are GMT. The time now is 03:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.