[Ajuda] warning 213: tag mismatch
#1

aqui esta os erros
Код:
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

Код:
if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw4[playerid])
aqui esta textdraw

Код:
	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

Код:
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
Reply
#2

Quote:
Originally Posted by LeonardoAlberto
Посмотреть сообщение
aqui esta os erros
Код:
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

Код:
if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw2[playerid])
 if(clickedid == Textdraw4[playerid])
aqui esta textdraw

Код:
	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

Код:
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 код:
if(clickedid == PlayerText:Textdraw2[playerid])
 if(
clickedid == PlayerText:Textdraw2[playerid])
 if(
clickedid == PlayerText:Textdraw4[playerid]) 
Reply
#3

Vocк criou uma PlayerTextdraw. Entгo deve usar a callback OnPlayerClickPlayerTextDraw ao invйs da OnPlayerClickTextDraw.
Reply
#4

Quote:
Originally Posted by RiqueP
Посмотреть сообщение
Vocк criou uma PlayerTextdraw. Entгo deve usar a callback OnPlayerClickPlayerTextDraw ao invйs da OnPlayerClickTextDraw.
deu isso ai velho

Код:
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
Reply
#5

Me mostre as linhas que estгo os erros
Reply
#6

Quote:
Originally Posted by RiqueP
Посмотреть сообщение
Me mostre as linhas que estгo os erros
Код:
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;
}
Reply
#7

PHP код:
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
Reply
#8

Quote:
Originally Posted by RiqueP
Посмотреть сообщение
PHP код:
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
Reply
#9

Vб no trecho onde estб criando as textdraw (como й playertextdraw, provavelmente em OnPlayerConnect), e coloque isso junto as textdraw clicaveis.
PHP код:
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
Reply
#10

Quote:
Originally Posted by RiqueP
Посмотреть сообщение
Vб no trecho onde estб criando as textdraw (como й playertextdraw, provavelmente em OnPlayerConnect), e coloque isso junto as textdraw clicaveis.
PHP код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)