TextDraw Warning
#1

When I use my PAWN Compiler it always show 2 warnings

pawn Код:
G:\HWCNR\gamemodes\HollyWood.pwn(1251) : warning 213: tag mismatch
G:\HWCNR\gamemodes\HollyWood.pwn(4693) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Also it takes long time to compile
I searched a lot and even checked the a_samp.inc file to see if my function parameters are right but no use
I know that warnings are no biggies but I really like the clean screen and it feels like something is wrong with those 2 lines

pawn Код:
Line 1251: TDH = Text:TextDrawCreate(5.5, 432.5, "~r~/rules   /pc   /commands ~g~http://www.hwcnr.freeforums.org/");
Line 4693: TDJ[playerid] = TextDrawCreate(50.0, 50.0, string);
The first line is in OnGameModeInit
and 2nd is in a function of mine, both have been declared as a variable at the top of my script

before i had problem with all my textdraw functions but after checking a_samp and putting "Text:" in front of my textdraw variable (not in the create textdraw function) those warnings are gone but not these.

What is the cause of this?
Reply
#2

what's that Text: doing in line 1251?

are the variables defined with
Код:
new Text:VarName;
or as
Код:
new Varname;
?
Reply
#3

pawn Код:
new Text:THD;
THD = TextDrawCreate...
Reply
#4

sorry i can't help you, this looks correct to me
Reply
#5

Quote:
Originally Posted by =WoR=Varth
Посмотреть сообщение
pawn Код:
new Text:THD;
THD = TextDrawCreate...
Oh so that was the problem, i didnt put Text: in the declaration and dat Text:TextDrawCreate.....

Was earlier version not the one i was having problem with

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)