SA-MP Forums Archive
Textdraws (wtf is this!!!!) - 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: Textdraws (wtf is this!!!!) (/showthread.php?tid=504622)



Textdraws (wtf is this!!!!) - ChristianIvann09 - 05.04.2014

I added some textdraws at the intro of the game.. then it only shows the top textdraw



It doesnt showing the other textdraws added the text,forums,teamspeapeak,,motd, etc!

Код:
	// Server Intro TxtDraws

	TopBox = TextDrawCreate(641.500000, 1.500000, "usebox");
	TextDrawLetterSize(TopBox, 0.000000, 12.252222);
	TextDrawTextSize(TopBox, -2.000000, 0.000000);
	TextDrawAlignment(TopBox, 1);
	TextDrawColor(TopBox, 0);
	TextDrawUseBox(TopBox, true);
	TextDrawBoxColor(TopBox, 41215);
	TextDrawSetShadow(TopBox, 0);
	TextDrawSetOutline(TopBox, 0);
	TextDrawFont(TopBox, 0);

	BottomBox = TextDrawCreate(1249.000000, 341.419921, "usebox");
	TextDrawLetterSize(BottomBox, 0.000000, 19.772222);
	TextDrawTextSize(BottomBox, -42.000000, 0.000000);
	TextDrawAlignment(BottomBox, 1);
	TextDrawColor(BottomBox, -16776961);
	TextDrawUseBox(BottomBox, true);
	TextDrawBoxColor(BottomBox, -2147483393);
	TextDrawSetShadow(BottomBox, 0);
	TextDrawSetOutline(BottomBox, 0);
	TextDrawFont(BottomBox, 0);


	Title = TextDrawCreate(167.000000, 14.559995, "Philippines Roleplay");
	TextDrawLetterSize(Title, 0.656000, 3.145600);
	TextDrawAlignment(Title, 1);
	TextDrawColor(Title, -1);
	TextDrawSetShadow(Title, 8);
	TextDrawSetOutline(Title, 0);
	TextDrawBackgroundColor(Title, 51);
	TextDrawFont(Title, 2);
	TextDrawSetProportional(Title, 1);


	ServerVersion = TextDrawCreate(302.000000, 48.719978, SERVER_GM_TEXT);
	TextDrawLetterSize(ServerVersion, 0.638500, 2.479199);
	TextDrawAlignment(ServerVersion, 1);
	TextDrawColor(ServerVersion, -65281);
	TextDrawSetShadow(ServerVersion, 0);
	TextDrawSetOutline(ServerVersion, 1);
	TextDrawBackgroundColor(ServerVersion, 51);
	TextDrawFont(ServerVersion, 1);
	TextDrawSetProportional(ServerVersion, 1);

        new string100[100];
	format(string100,100,"Motd: %s", GlobalMOTD);
	TextDrawSetString(TheMotd, string100);
	TheMotd = TextDrawCreate(90.000000, 362.880004, " ");
	TextDrawLetterSize(TheMotd, 0.537499, 2.496000);
	TextDrawAlignment(TheMotd, 1);
	TextDrawColor(TheMotd, 16777215);
	TextDrawSetShadow(TheMotd, 0);
	TextDrawSetOutline(TheMotd, 1);
	TextDrawBackgroundColor(TheMotd, 51);
	TextDrawFont(TheMotd, 1);
	TextDrawSetProportional(TheMotd, 1);

	Forums = TextDrawCreate(19.000000, 409.920104, "Forums: www.ph-roleplay.yzi.me");
	TextDrawLetterSize(Forums, 0.449999, 1.600000);
	TextDrawAlignment(Forums, 1);
	TextDrawColor(Forums, -1);
	TextDrawSetShadow(Forums, 0);
	TextDrawSetOutline(Forums, 1);
	TextDrawBackgroundColor(Forums, 51);
	TextDrawFont(Forums, 1);
	TextDrawSetProportional(Forums, 1);


	TeamSpeak = TextDrawCreate(383.000000, 409.920013, "TeamSpeak: Coming Soon!");
	TextDrawLetterSize(TeamSpeak, 0.449999, 1.600000);
	TextDrawAlignment(TeamSpeak, 1);
	TextDrawColor(TeamSpeak, -1);
	TextDrawSetShadow(TeamSpeak, 0);
	TextDrawSetOutline(TeamSpeak, 1);
	TextDrawBackgroundColor(TeamSpeak, 51);
	TextDrawFont(TeamSpeak, 1);
	TextDrawSetProportional(TeamSpeak, 1);
I dunno wheres the problem is caming from. i think this is the first bug discovered in 0.3z version (LOL)

Thanks guys for helping!


Re: Textdraws (wtf is this!!!!) - iChiCkeNBuTT - 05.04.2014

Did you put TextDrawHideForPlayer under OnPlayerSpawn?


Re: Textdraws (wtf is this!!!!) - Flake. - 05.04.2014

Show us your showtextdrawforplayer code


Re: Textdraws (wtf is this!!!!) - ChristianIvann09 - 05.04.2014

Quote:
Originally Posted by iChiCkeNBuTT
Посмотреть сообщение
Did you put TextDrawHideForPlayer under OnPlayerSpawn?
nOPE.


Re: Textdraws (wtf is this!!!!) - iChiCkeNBuTT - 05.04.2014

Seems you forgot to put some of textdraws OnPlayerConnect.


Re: Textdraws (wtf is this!!!!) - ChristianIvann09 - 05.04.2014

Quote:
Originally Posted by iChiCkeNBuTT
Посмотреть сообщение
Seems you forgot to put some of textdraws OnPlayerConnect.
What? i just want that textdraw works when player is on login or register


Re: Textdraws (wtf is this!!!!) - ChristianIvann09 - 05.04.2014

Nevermind guys,. already fixed