Textdraws doesn't show
#1

Hello, I have made new textdraws but they aren't showing ingame what is wrong with this:



Код:
	// Random News - Kingpin
    ServerTips = TextDrawCreate(18.000000, 430.000000, "Random News:");
    TextDrawBackgroundColor(ServerTips, 255);
    TextDrawFont(ServerTips, 2);
    TextDrawLetterSize(ServerTips, 0.170000, 1.300000);
    TextDrawColor(ServerTips, 0xFF8000FF);
    TextDrawSetOutline(ServerTips, 1);
    TextDrawSetProportional(ServerTips, 1);

    MessagesTD = TextDrawCreate(70.000000, 432.000000, "");
    TextDrawBackgroundColor(MessagesTD, 255);
    TextDrawFont(MessagesTD, 1);
    TextDrawLetterSize(MessagesTD, 0.220000, 1.000000);
    TextDrawColor(MessagesTD, -1);
    TextDrawSetOutline(MessagesTD, 0);
    TextDrawSetProportional(MessagesTD, 1);
    TextDrawSetShadow(MessagesTD, 1);

	ServerBanner = TextDrawCreate(506.000000, 2.000000, "www.redlabelgaming.net");
	TextDrawBackgroundColor(ServerBanner, 255);
	TextDrawFont(ServerBanner, 0);
	TextDrawLetterSize(ServerBanner, 0.429999, 2.000000);
	TextDrawColor(ServerBanner, 0x33CCFFAA);
	TextDrawSetOutline(ServerBanner, 1);
	TextDrawSetProportional(ServerBanner, 1);
Код:
Gamemode.pwn(556) : warning 213: tag mismatch
Gamemode.pwn(557) : warning 213: tag mismatch
Gamemode.pwn(558) : warning 213: tag mismatch
Gamemode.pwn(559) : warning 213: tag mismatch
Gamemode.pwn(560) : warning 213: tag mismatch
Gamemode.pwn(561) : warning 213: tag mismatch
Gamemode.pwn(562) : warning 213: tag mismatch
Gamemode.pwn(564) : warning 213: tag mismatch
Gamemode.pwn(565) : warning 213: tag mismatch
Gamemode.pwn(566) : warning 213: tag mismatch
Gamemode.pwn(567) : warning 213: tag mismatch
Gamemode.pwn(568) : warning 213: tag mismatch
Gamemode.pwn(569) : warning 213: tag mismatch
Gamemode.pwn(570) : warning 213: tag mismatch
Gamemode.pwn(571) : warning 213: tag mismatch
Gamemode.pwn(573) : warning 213: tag mismatch
Gamemode.pwn(574) : warning 213: tag mismatch
Gamemode.pwn(576) : warning 213: tag mismatch
Gamemode.pwn(577) : warning 213: tag mismatch
Gamemode.pwn(578) : warning 213: tag mismatch
Gamemode.pwn(579) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


21 Warnings.
Reply
#2

Where did you put those ?

Did you use TextDrawShowForPlayer somewhere to show it?
Reply
#3

You sure that you have

PHP код:
new Text:ServerTipsText:MessagesTDText:ServerBanner 
?
Reply
#4

Код:
new Text:ServerTips;
new Text:MessagesTD;
new Text:ServerBanner;
Yes I have. So I do not know what the problem is.
Reply
#5

Is there something wrong with:

Код:
forward ShowHelp();
public ShowHelp()
{
	new i = random(sizeof(RandMsg));
	foreach(Player, p)
	{
		PlayerTextDrawSetString(p, MessagesTD, RandMsg[i]);
	}
}
Reply
#6

Doesn't matter what I change.. I keep getting those warnings..
Reply
#7

maybe

PHP код:
 MessagesTD TextDrawCreate(70.000000432.000000""); 
use space at ""
PHP код:
MessagesTD TextDrawCreate(70.000000432.000000" "); 
from samp wiki
Код:
 text[] must NOT be empty or the server will crash! If you need a textdraw that shows nothing, use " " (a space) or _ (underscore). Now it's fixed.
Reply
#8

I have changed that but still got those warnings:

Код:
Gamemode.pwn(556) : warning 213: tag mismatch
Gamemode.pwn(557) : warning 213: tag mismatch
Gamemode.pwn(558) : warning 213: tag mismatch
Gamemode.pwn(559) : warning 213: tag mismatch
Gamemode.pwn(560) : warning 213: tag mismatch
Gamemode.pwn(561) : warning 213: tag mismatch
Gamemode.pwn(562) : warning 213: tag mismatch
Gamemode.pwn(563) : warning 213: tag mismatch
Gamemode.pwn(566) : warning 213: tag mismatch
Gamemode.pwn(567) : warning 213: tag mismatch
Gamemode.pwn(568) : warning 213: tag mismatch
Gamemode.pwn(569) : warning 213: tag mismatch
Gamemode.pwn(570) : warning 213: tag mismatch
Gamemode.pwn(571) : warning 213: tag mismatch
Gamemode.pwn(572) : warning 213: tag mismatch
Gamemode.pwn(573) : warning 213: tag mismatch
Gamemode.pwn(574) : warning 213: tag mismatch
Gamemode.pwn(577) : warning 213: tag mismatch
Gamemode.pwn(578) : warning 213: tag mismatch
Gamemode.pwn(579) : warning 213: tag mismatch
Gamemode.pwn(580) : warning 213: tag mismatch
Gamemode.pwn(581) : warning 213: tag mismatch
Gamemode.pwn(582) : warning 213: tag mismatch
Gamemode.pwn(583) : warning 213: tag mismatch
Gamemode.pwn(584) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Warnings.
Reply
#9

Put them under OnGameModeInit()
Reply
#10

Would help if we'd see exactly which lined give warnings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)