PDA

View Full Version : warning 213: tag mismatch


Don_Ciamis
10/06/2013, 11:10 AM
I Dont understand about how to fix this script

D:\All In One\Samp Server\NILRP\gamemodes\NHIRP.pwn(19838) : warning 213: tag mismatch
D:\All In One\Samp Server\NILRP\gamemodes\NHIRP.pwn(19838) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Warnings.

This is The Script

// Animations
txtAnimHelper = TextDrawCreate(120.000000, 428.000000, "Tekan Shift Atau Space Atau /Stopanim Untuk Berhentikan Animasi");
TextDrawBackgroundColor(txtAnimHelper, 255);
TextDrawFont(txtAnimHelper, 0);
TextDrawHideForPlayer(txtAnimHelper, 1);
TextDrawLetterSize(txtAnimHelper, 0.500000, 1.000000);
TextDrawColor(txtAnimHelper, -16776961);
TextDrawSetOutline(txtAnimHelper, 1);
TextDrawSetProportional(txtAnimHelper, 1);
print("ANIMATIONS LOADED");

This line

LINE 1938 = TextDrawHideForPlayer(txtAnimHelper, 1);

Scrillex
10/06/2013, 11:11 AM
TextDrawHideForPlayer(playerid, Textdraw[playerid]);
WIKI! (http://wiki.sa-mp.com/wiki/TextDrawHideForPlayer)

Chris10
10/06/2013, 11:12 AM
change: TextDrawHideForPlayer(txtAnimHelper, 1);
to TextDrawHideForPlayer(playerid,txtAnimHelper);

Guest123
10/06/2013, 11:12 AM
TextDrawHideForPlayer(playerid, txtAnimHelper[playerid]);


EDIT: they faster than me

HurtLocker
10/06/2013, 11:13 AM
wrong parameter input. replace the txtAnimHelper with the player's id that you want to hide the textdraw.

EDIT: omg so many posts appearing! I was too late!

Avi57
10/06/2013, 11:13 AM
replace with this :-

TextDrawHideForPlayer(playerid, txtAnimHelper[playerid]);

Don_Ciamis
10/06/2013, 11:17 AM
Thanks to all , already fixed thanks thanks :)