[Ajuda] TDEditor, warning 213: tag mismatch, PlayerTextDraw
#1

Sempre tenho problemas com Textdraws.
Todas as Linhas das PTDs do TDEditor SEM EDITAR dгo esse Warning
E no visual pra mim, nгo hб nada errado, pelo menos em nгo percebi.

Poderiam me Ajudar a mostrar o erro e o porque do Erro?
pawn Код:
public OnPlayerConnect(playerid)
{
    TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 495.600036, 96.666702, "Ping:123");
    PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.296799, 1.278932);
    PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
    PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
    PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2);
    PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);

    TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 561.788879, 96.666702, "FPS:123");
    PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.296799, 1.278932);
    PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
    PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
    PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 2);
    PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
Eu nem manipulei ainda, elas para mostrar os dados, estгo assim desde o TDeditor
Reply
#2

PHP код:
Topo do GM:
new 
Text:TDEditor_PTD1[MAX_PLAYERS];
new 
Text:TDEditor_PTD2[MAX_PLAYERS];
public 
OnGameModeInit()
{    
    for(new 
0MAX_PLAYERSi++)
    {
        
TDEditor_PTD1[i] = CreatePlayerTextDraw(495.60003696.666702"Ping:123");
        
PlayerTextDrawLetterSize(TDEditor_PTD1[i], 0.2967991.278932);
        
PlayerTextDrawAlignment(TDEditor_PTD1[i], 1);
        
PlayerTextDrawColor(TDEditor_PTD1[i], -1);
        
PlayerTextDrawSetShadow(TDEditor_PTD1[i], 1);
        
PlayerTextDrawSetOutline(TDEditor_PTD1[i], 0);
        
PlayerTextDrawBackgroundColor(TDEditor_PTD1[i], 255);
        
PlayerTextDrawFont(TDEditor_PTD1[i], 2);
        
PlayerTextDrawSetProportional(TDEditor_PTD1[i], 1);
        
PlayerTextDrawSetShadow(TDEditor_PTD1[i], 1);
        
TDEditor_PTD2[i] = CreatePlayerTextDraw(561.78887996.666702"FPS:123");
        
PlayerTextDrawLetterSize(TDEditor_PTD2[i], 0.2967991.278932);
        
PlayerTextDrawAlignment(TDEditor_PTD2[i], 1);
        
PlayerTextDrawColor(TDEditor_PTD2[i], -1);
        
PlayerTextDrawSetShadow(TDEditor_PTD2[i], 1);
        
PlayerTextDrawSetOutline(TDEditor_PTD2[i], 0);
        
PlayerTextDrawBackgroundColor(TDEditor_PTD2[i], 255);
        
PlayerTextDrawFont(TDEditor_PTD2[i], 2);
        
PlayerTextDrawSetProportional(TDEditor_PTD2[i], 1);
        
PlayerTextDrawSetShadow(TDEditor_PTD2[i], 1);
    }

Tenta usar dessa forma.
Reply
#3

Crie para o player, nгo global.
Reply
#4

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Crie para o player, nгo global.
Mas as Textdraws jб sгo em PlayerTextDraw
Reply
#5

Quote:
Originally Posted by MarllonGTA
Посмотреть сообщение
Mas as Textdraws jб sгo em PlayerTextDraw
Perdгo. O user acima colocou:
Код:
new Text:TDEditor_PTD1[MAX_PLAYERS]; 
new Text:TDEditor_PTD2[MAX_PLAYERS];
E eu fui na onda.

Faзa assim:
Код:
//topo
new PlayerText:TDEditor_PTD[MAX_PLAYERS][2];

//OnPlayerConnect
public OnPlayerConnect(playerid)
{
	TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 495.600036, 96.666702, "Ping:123");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.296799, 1.278932);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 2);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 1);

	TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 561.788879, 96.666702, "FPS:123");
	PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.296799, 1.278932);
	PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
	PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
	PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 2);
	PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
	PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 1);

       PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);
       PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);
Reply
#6

Aqui nгo apresentou erros:

PHP код:
new PlayerText:TDEditor_PTD[MAX_PLAYERS][2];

public 
OnPlayerConnect(playerid){
    
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid495.60003696.666702"Ping:123");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.2967991.278932);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 2);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 1);

    
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid561.78887996.666702"FPS:123");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][1], 0.2967991.278932);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][1], 2);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 1);
    return 
true;

Reply
#7

Quote:
Originally Posted by zSuYaNw
Посмотреть сообщение
Aqui nгo apresentou erros:

PHP код:
new PlayerText:TDEditor_PTD[MAX_PLAYERS][2];
public 
OnPlayerConnect(playerid){
    
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid495.60003696.666702"Ping:123");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][0], 0.2967991.278932);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][0], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][0], 2);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][0], 1);
    
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid561.78887996.666702"FPS:123");
    
PlayerTextDrawLetterSize(playeridTDEditor_PTD[playerid][1], 0.2967991.278932);
    
PlayerTextDrawAlignment(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawColor(playeridTDEditor_PTD[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawSetOutline(playeridTDEditor_PTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEditor_PTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridTDEditor_PTD[playerid][1], 2);
    
PlayerTextDrawSetProportional(playeridTDEditor_PTD[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridTDEditor_PTD[playerid][1], 1);
    return 
true;

Uma versгo anterior (nгo me recordo qual) declarava a variбvel do TD para o PLAYER desta maneira:
Код:
Text:Var...
Em vez de:
Код:
PlayerText:Var...
Mas sу quem usou pфde perceber o erro, porйm, jб foi corrigido em uma atualizaзгo recente.
Reply
#8

Код:
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3429) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3430) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3431) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3432) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3433) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3434) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3435) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3436) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3437) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3438) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3440) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3441) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3442) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3443) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3444) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3445) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3446) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3447) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3448) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3449) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
20 Warnings.
Linhas das PTDs
Reply
#9

Quote:
Originally Posted by MarllonGTA
Посмотреть сообщение
Код:
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3429) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3430) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3431) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3432) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3433) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3434) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3435) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3436) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3437) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3438) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3440) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3441) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3442) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3443) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3444) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3445) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3446) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3447) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3448) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas B\Facзхes City 0.3z - Build 7.1.2\gamemodes\FaccoesCity10.pwn(3449) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
20 Warnings.
Linhas das PTDs
Olhe meu cуdigo acima, ou troque Text por PlayerText como Final citou.
Reply
#10

Alterei de PlayerText:var para Somente Text:var

E funcionou, mas eu uso SAMP 0.3.7
que bruxaria foi essa?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)