SA-MP Forums Archive
[HELP]How To Fix It ??? +REP1 - 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: [HELP]How To Fix It ??? +REP1 (/showthread.php?tid=472169)



[HELP]How To Fix It ??? +REP1 - WhiteAngels - 27.10.2013

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 ???


Re: [HELP]How To Fix It ??? +REP1 - Scrillex - 27.10.2013

Seriusly?
Where is the rest of the code?

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


Re: [HELP]How To Fix It ??? +REP1 - WhiteAngels - 27.10.2013

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);



Re: [HELP]How To Fix It ??? +REP1 - Surgeon - 27.10.2013

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.


Re: [HELP]How To Fix It ??? +REP1 - WhiteAngels - 27.10.2013

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 :/


Re: [HELP]How To Fix It ??? +REP1 - Scrillex - 27.10.2013

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


Re: [HELP]How To Fix It ??? +REP1 - Dragonsaurus - 27.10.2013

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