SA-MP Forums Archive
warning 213: tag mismatch with PlayerTextDrawShow - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 213: tag mismatch with PlayerTextDrawShow (/showthread.php?tid=656381)



warning 213: tag mismatch with PlayerTextDrawShow - SlayerHodge - 14.07.2018

Problem: This warning is confusing me, I literally used the global playertextdrraw "TextDrawShowForPlayer()" and there was no warning. please aassist

Quote:

./assets/functions.pwn(271) : warning 213: tag mismatch
./assets/functions.pwn(272) : warning 213: tag mismatch
./assets/functions.pwn(273) : warning 213: tag mismatch
./assets/functions.pwn(274) : warning 213: tag mismatch
./assets/functions.pwn(275) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Warnings.


Код:
	new   Text:Dealertext1[MAX_PLAYERS],Text:Dealertexton1[MAX_PLAYERS],Text:Dealertext2[MAX_PLAYERS],Text:Dealertexon2[MAX_PLAYERS],Text:Dealerplayer[MAX_PLAYERS];
               Dealertext1[i] = TextDrawCreate(455.000000, 170.000000, "BETS:");
		TextDrawBackgroundColor(Dealertext1[i], 255);
		TextDrawFont(Dealertext1[i], 1);
		TextDrawLetterSize(Dealertext1[i], 0.559999, 1.700000);
		TextDrawColor(Dealertext1[i], -1);
		TextDrawSetOutline(Dealertext1[i], 0);
		TextDrawSetProportional(Dealertext1[i], 1);
		TextDrawSetShadow(Dealertext1[i], 1);
		TextDrawUseBox(Dealertext1[i], 1);
		TextDrawBoxColor(Dealertext1[i], 255);
		TextDrawTextSize(Dealertext1[i], 627.000000, 10.000000);

		Dealertexton1[i] = TextDrawCreate(508.000000, 175.000000, "ON/OFF");
		TextDrawBackgroundColor(Dealertexton1[i], 255);
		TextDrawFont(Dealertexton1[i], 1);
		TextDrawLetterSize(Dealertexton1[i], 0.500000, 1.000000);
		TextDrawColor(Dealertexton1[i], -16776961);
		TextDrawSetOutline(Dealertexton1[i], 0);
		TextDrawSetProportional(Dealertexton1[i], 1);
		TextDrawSetShadow(Dealertexton1[i], 1);

		Dealertext2[i] = TextDrawCreate(455.000000, 190.000000, "NUMBERS:");
		TextDrawBackgroundColor(Dealertext2[i], 255);
		TextDrawFont(Dealertext2[i], 1);
		TextDrawLetterSize(Dealertext2[i], 0.519999, 1.600000);
		TextDrawColor(Dealertext2[i], -1);
		TextDrawSetOutline(Dealertext2[i], 0);
		TextDrawSetProportional(Dealertext2[i], 1);
		TextDrawSetShadow(Dealertext2[i], 1);
		TextDrawUseBox(Dealertext2[i], 1);
		TextDrawBoxColor(Dealertext2[i], 255);
		TextDrawTextSize(Dealertext2[i], 627.000000, 0.000000);

		Dealertexon2[i] = TextDrawCreate(545.000000, 194.000000, "ON/OFF");
		TextDrawBackgroundColor(Dealertexon2[i], 255);
		TextDrawFont(Dealertexon2[i], 1);
		TextDrawLetterSize(Dealertexon2[i], 0.500000, 1.000000);
		TextDrawColor(Dealertexon2[i], -16776961);
		TextDrawSetOutline(Dealertexon2[i], 0);
		TextDrawSetProportional(Dealertexon2[i], 1);
		TextDrawSetShadow(Dealertexon2[i], 1);

		Dealerplayer[i] = TextDrawCreate(455.000000, 209.000000, "Playerbets");
		TextDrawBackgroundColor(Dealerplayer[i], 255);
		TextDrawFont(Dealerplayer[i], 1);
		TextDrawLetterSize(Dealerplayer[i], 0.500000, 1.000000);
		TextDrawColor(Dealerplayer[i], -1);
		TextDrawSetOutline(Dealerplayer[i], 0);
		TextDrawSetProportional(Dealerplayer[i], 1);
		TextDrawSetShadow(Dealerplayer[i], 1);
		TextDrawUseBox(Dealerplayer[i], 1);
		TextDrawBoxColor(Dealerplayer[i], 255);
		TextDrawTextSize(Dealerplayer[i], 627.000000, 0.000000);
Код:

Код:
  PlayerLoop(i)
	{
		if(joinedtable[i] == true && tableid[i] == tableid[playerid])
		{
               //Line 271 PlayerTextDrawShow(i,Dealertext1[playerid]);
           	// line 272  PlayerTextDrawShow(i,Dealertext2[playerid]);
           	 // line 273 PlayerTextDrawShow(i,Dealertexton1[playerid]);
  		 // line 274 PlayerTextDrawShow(i,Dealertexon2[playerid]);
	         // line 275 PlayerTextDrawShow(i,Dealerplayer[playerid]);
		}



Re: warning 213: tag mismatch with PlayerTextDrawShow - Lokii - 14.07.2018

Because you created a global text draw and trying to show player text draw


Re: warning 213: tag mismatch with PlayerTextDrawShow - Moldova - 14.07.2018

Код:
PlayerLoop(i)
{
	if(joinedtable[i] == true && tableid[i] == tableid[playerid])
	{
		TextDrawShowForPlayer(i,Dealertext1[playerid]);
		TextDrawShowForPlayer(i,Dealertext2[playerid]);
		TextDrawShowForPlayer(i,Dealertexton1[playerid]);
		TextDrawShowForPlayer(i,Dealertexon2[playerid]);
		TextDrawShowForPlayer(i,Dealerplayer[playerid]);
	}
}



Re: warning 213: tag mismatch with PlayerTextDrawShow - SlayerHodge - 14.07.2018

Quote:
Originally Posted by Lokii
Посмотреть сообщение
Because you created a global text draw and trying to show player text draw
So what should i do, the point of this text draw was to show a series of players depending on the dealer table they are connected too. I didnot want conflicting tables, eg, dealer table 2 members seeing dealer table one's textdraw


Re: warning 213: tag mismatch with PlayerTextDrawShow - SlayerHodge - 14.07.2018

Quote:
Originally Posted by Moldova
Посмотреть сообщение
Код:
PlayerLoop(i)
{
	if(joinedtable[i] == true && tableid[i] == tableid[playerid])
	{
		TextDrawShowForPlayer(i,Dealertext1[playerid]);
		TextDrawShowForPlayer(i,Dealertext2[playerid]);
		TextDrawShowForPlayer(i,Dealertexton1[playerid]);
		TextDrawShowForPlayer(i,Dealertexon2[playerid]);
		TextDrawShowForPlayer(i,Dealerplayer[playerid]);
	}
}
I had this one but it was blinking dealertext1[playerid]
https://*********/UpCCm9Kik24


Re: warning 213: tag mismatch with PlayerTextDrawShow - SlayerHodge - 15.07.2018

Ok i have fixed the betting aspect of the dealersystem now only lies how to gain more a new line on user's input. Example. if in the text draw was

Slayerhodge betted 100$ on 1st line.((it must continue on the next time a player uses the cmd and))
Someoneelse Betted 120$ on 2nd line.