TextDraw Warning - 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: TextDraw Warning (
/showthread.php?tid=292801)
TextDraw Warning -
OmegaTheAlpha - 25.10.2011
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?
Re: TextDraw Warning -
Falco-Ger - 25.10.2011
what's that Text: doing in line 1251?
are the variables defined with
or as
?
Re: TextDraw Warning -
=WoR=Varth - 25.10.2011
pawn Код:
new Text:THD;
THD = TextDrawCreate...
Re: TextDraw Warning -
Falco-Ger - 25.10.2011
sorry i can't help you, this looks correct to me
Re: TextDraw Warning -
OmegaTheAlpha - 25.10.2011
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