[HELP]How To Fix It ??? +REP1
#1

I want to Add textdraw in my GM

I Add this on top of the script
Код:
new text:Dw3
new text:Dw4
new text:Dw5
I Add This OnGameModeInit

Код:
        Dw3 = TextDrawCreate(381.5 ,441 , "Devils World Gaming 0.3x");
	TextDrawFont(Dw3 , 1);
	TextDrawLetterSize(Dw3 , 0.5, 3.5);
	TextDrawColor(Dw3 , 0x03d4dbFF);
	TextDrawSetOutline(Dw3 , false);
	TextDrawSetProportional(Dw3 , true);
	TextDrawSetShadow(Dw3 , 2.5);

	Dw4 = TextDrawCreate(354 ,446 , ">>");
	TextDrawFont(Dw4 , 1);
	TextDrawLetterSize(Dw4 , 0.6, 4.2);
	TextDrawColor(Dw4 , 0x1100ffFF);
	TextDrawSetOutline(Dw4 , false);
	TextDrawSetProportional(Dw4 , true);
	TextDrawSetShadow(Dw4 , 2.5);

	Dw5 = TextDrawCreate(608 ,445 , "<<");
	TextDrawFont(Dw5 , 1);
	TextDrawLetterSize(Dw5 , 0.5, 3.5);
	TextDrawColor(Dw5 , 0x1100ffFF);
	TextDrawSetOutline(Dw5 , false);
	TextDrawSetProportional(Dw5 , true);
	TextDrawSetShadow(Dw5 , 2.5);
I add this OnPlayerSpawn

Код:
TextDrawShowForPlayer(playerid, Dw3);
TextDrawShowForPlayer(playerid, Dw4);
TextDrawShowForPlayer(playerid, Dw5);
I Add This OnPlayerDisconnect

Код:
TextDrawHideForPlayer(playerid, Dw3);
TextDrawHideForPlayer(playerid, Dw4);
TextDrawHideForPlayer(playerid, Dw5);
And I get 3 Warnings
Quote:

G:\GTA SA-MP Installers\DwTDM~RP v10\gamemodes\DwTDM_v17.pwn(5980) : warning 213: tag mismatch
G:\GTA SA-MP Installers\DwTDM~RP v10\gamemodes\DwTDM_v17.pwn(5988) : warning 213: tag mismatch
G:\GTA SA-MP Installers\DwTDM~RP v10\gamemodes\DwTDM_v17.pwn(5996) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

How To Fix It ???
Reply
#2

Seriusly?
Where is the rest of the code?

Show the lines... Not some part'swe ain't magic makers..
Reply
#3

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Seriusly?
Where is the rest of the code?

Show the lines... Not some part'swe ain't magic makers..
OnGameModeInit

Код:
        Dw3 = TextDrawCreate(381.5 ,441 , "Devils World Gaming 0.3x");
	TextDrawFont(Dw3 , 1);
	TextDrawLetterSize(Dw3 , 0.5, 3.5);
	TextDrawColor(Dw3 , 0x03d4dbFF);
	TextDrawSetOutline(Dw3 , false);
	TextDrawSetProportional(Dw3 , true);
	TextDrawSetShadow(Dw3 , 2.5);

	Dw4 = TextDrawCreate(354 ,446 , ">>");
	TextDrawFont(Dw4 , 1);
	TextDrawLetterSize(Dw4 , 0.6, 4.2);
	TextDrawColor(Dw4 , 0x1100ffFF);
	TextDrawSetOutline(Dw4 , false);
	TextDrawSetProportional(Dw4 , true);
	TextDrawSetShadow(Dw4 , 2.5);

	Dw5 = TextDrawCreate(608 ,445 , "<<");
	TextDrawFont(Dw5 , 1);
	TextDrawLetterSize(Dw5 , 0.5, 3.5);
	TextDrawColor(Dw5 , 0x1100ffFF);
	TextDrawSetOutline(Dw5 , false);
	TextDrawSetProportional(Dw5 , true);
	TextDrawSetShadow(Dw5 , 2.5);
Reply
#4

As far as I know, warnings dont affect it at all, you can launch it and it will work properly..if an error appears, you have to fix it.
Reply
#5

Quote:
Originally Posted by Surgeon
Посмотреть сообщение
As far as I know, warnings dont affect it at all, you can launch it and it will work properly..if an error appears, you have to fix it.
but the textdraw isn't show in my server :/
Reply
#6

show the correct lines.. where the warning appiers (sorry for delay)
Reply
#7

It's:
pawn Код:
new Text:dw3;
new Text:dw4;
new Text:dw5;
You need capital T for "Text:" tag.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)