SA-MP Forums Archive
Textdraw problem! - 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 problem! (/showthread.php?tid=583169)



Textdraw problem! - ivan73 - 26.07.2015

I have a problem with textdraws, when the server switch to version 0.3.7, some textdraws will not be shown publicly, to 0.3.z doing everything normal..

Sorry for my bad english!


Re: Textdraw problem! - nGen.SoNNy - 26.07.2015

Show us your code...we are not magicians


Re: Textdraw problem! - ivan73 - 26.07.2015

Код:
new Text:tdLog1;
new Text:tdLog2;
new Text:tdLog3;
new Text:tdLog4;
new Text:tdLog5;
new Text:tdLog6;
new Text:tdLog7;

tdLog1 = TextDrawCreate(317.085296, 54.805240, "Logiranje");
TextDrawLetterSize(tdLog1, 0.496398, 2.914132);
TextDrawTextSize(tdLog1, 1230.400634, 655.573364);
TextDrawAlignment(tdLog1, 2);
TextDrawColor(tdLog1, -5963521);
TextDrawUseBox(tdLog1, true);
TextDrawBoxColor(tdLog1, 255);
TextDrawSetShadow(tdLog1, 0);
TextDrawSetOutline(tdLog1, 0);
TextDrawBackgroundColor(tdLog1, -1);
TextDrawFont(tdLog1, 2);
TextDrawSetProportional(tdLog1, 1);

tdLog2 = TextDrawCreate(283.999938, 149.333282, "Login");
TextDrawLetterSize(tdLog2, 0.545199, 2.137599);
TextDrawAlignment(tdLog2, 1);
TextDrawColor(tdLog2, -1);
TextDrawSetShadow(tdLog2, 0);
TextDrawSetOutline(tdLog2, 1);
TextDrawBackgroundColor(tdLog2, 51);
TextDrawFont(tdLog2, 2);
TextDrawSetProportional(tdLog2, 1);
TextDrawSetSelectable(tdLog2, true);
TextDrawSetSelectable(tdLog2, true);

tdLog3 = TextDrawCreate(276.800018, 200.106597, "Novosti");
TextDrawLetterSize(tdLog3, 0.471600, 2.033066);
TextDrawAlignment(tdLog3, 1);
TextDrawColor(tdLog3, -1);
TextDrawSetShadow(tdLog3, 0);
TextDrawSetOutline(tdLog3, 1);
TextDrawBackgroundColor(tdLog3, 51);
TextDrawFont(tdLog3, 2);
TextDrawSetProportional(tdLog3, 1);
TextDrawSetSelectable(tdLog3, true);

tdLog4 = TextDrawCreate(229.600021, 256.106719, "www.forum-od.com");
TextDrawLetterSize(tdLog4, 0.458800, 1.988267);
TextDrawAlignment(tdLog4, 1);
TextDrawColor(tdLog4, -1);
TextDrawSetShadow(tdLog4, 0);
TextDrawSetOutline(tdLog4, 1);
TextDrawBackgroundColor(tdLog4, 51);
TextDrawFont(tdLog4, 2);
TextDrawSetProportional(tdLog4, 1);

tdLog5 = TextDrawCreate(430.000091, 241.180114, "usebox");
TextDrawLetterSize(tdLog5, 0.000000, 5.182592);
TextDrawTextSize(tdLog5, 222.799972, 0.000000);
TextDrawAlignment(tdLog5, 1);
TextDrawColor(tdLog5, 0);
TextDrawUseBox(tdLog5, true);
TextDrawBoxColor(tdLog5, 102);
TextDrawSetShadow(tdLog5, 0);
TextDrawSetOutline(tdLog5, 0);
TextDrawFont(tdLog5, 0);

tdLog6 = TextDrawCreate(430.000030, 186.673355, "usebox");
TextDrawLetterSize(tdLog6, 0.000000, 5.096666);
TextDrawTextSize(tdLog6, 222.799987, 0.000000);
TextDrawAlignment(tdLog6, 1);
TextDrawColor(tdLog6, 0);
TextDrawUseBox(tdLog6, true);
TextDrawBoxColor(tdLog6, 102);
TextDrawSetShadow(tdLog6, 0);
TextDrawSetOutline(tdLog6, 0);
TextDrawFont(tdLog6, 0);

tdLog7 = TextDrawCreate(429.999969, 133.659957, "usebox");
TextDrawLetterSize(tdLog7, 0.000000, 4.957407);
TextDrawTextSize(tdLog7, 222.800003, 0.000000);
TextDrawAlignment(tdLog7, 1);
TextDrawColor(tdLog7, 0);
TextDrawUseBox(tdLog7, true);
TextDrawBoxColor(tdLog7, 102);
TextDrawSetShadow(tdLog7, 0);
TextDrawSetOutline(tdLog7, 0);
TextDrawFont(tdLog7, 0);

TextDrawShowForPlayer(playerid, tdLog1);
TextDrawShowForPlayer(playerid, tdLog2);
TextDrawShowForPlayer(playerid, tdLog3);
TextDrawShowForPlayer(playerid, tdLog4);
TextDrawShowForPlayer(playerid, tdLog5);
TextDrawShowForPlayer(playerid, tdLog6);
TextDrawShowForPlayer(playerid, tdLog7);
SelectTextDraw(playerid, 0xFF4500FF);
code is ok


Re: Textdraw problem! - thaKing - 26.07.2015

You should use player text draws for login.
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw


Re: Textdraw problem! - ivan73 - 27.07.2015

It does not help, what does the right createplayertextdraw or textdrawcreate!


Re: Textdraw problem! - gurmani11 - 27.07.2015

pawn Код:
createplayertextdraw
It specifies for a specific player
pawn Код:
textdrawcreate
It is for global usage/ mostly used under
pawn Код:
OnGameModeInIt



Re: Textdraw problem! - ivan73 - 27.07.2015

I know all that, but not an error in the code, but when I switch on the server version 0.3.7, will not they show