Textdraw Doesnt show up
#1

Hi guys my textdraw for login doesnt show up please help me? heres the code


public OnPlayerConnect(playerid)
{

Textdraw0 = TextDrawCreate(644.000000, 2.000000, "_");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 14.200005);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 102);
TextDrawTextSize(Textdraw0, 0.000000, 0.000000);

Textdraw1 = TextDrawCreate(644.000000, 317.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 14.200005);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 102);
TextDrawTextSize(Textdraw1, 0.000000, 0.000000);

Textdraw2 = TextDrawCreate(691.000000, 127.000000, "_");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, -675003;
TextDrawTextSize(Textdraw2, 0.000000, 0.000000);

Textdraw3 = TextDrawCreate(691.000000, 311.000000, "_");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, -675003;
TextDrawTextSize(Textdraw3, 0.000000, 0.000000);

Textdraw4 = TextDrawCreate(50.000000, 0.000000, "Welcome To");
TextDrawBackgroundColor(Textdraw4, 65535);
TextDrawFont(Textdraw4, 0);
TextDrawLetterSize(Textdraw4, 2.019999, 5.199999);
TextDrawColor(Textdraw4, 16711935);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(45.000000, 41.000000, ".");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 31.720085, 2.000000);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);

Textdraw6 = TextDrawCreate(120.000000, 62.000000, "MPG Los Santos CnR");
TextDrawBackgroundColor(Textdraw6, -1);
TextDrawFont(Textdraw6, 2);
TextDrawLetterSize(Textdraw6, 1.120000, 5.199999);
TextDrawColor(Textdraw6, 16711935);
TextDrawSetOutline(Textdraw6, 1);
TextDrawSetProportional(Textdraw6, 1);

Textdraw7 = TextDrawCreate(413.000000, 141.000000, "_");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 1.500000, 18.200000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 102);
TextDrawTextSize(Textdraw7, 240.000000, 10.000000);

Textdraw8 = TextDrawCreate(255.000000, 141.000000, "_");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 1.500000, 18.200000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw8, -675003;
TextDrawTextSize(Textdraw8, 228.000000, 10.000000);

Textdraw9 = TextDrawCreate(424.000000, 141.000000, "_");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 1.500000, 18.200000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
TextDrawUseBox(Textdraw9, 1);
TextDrawBoxColor(Textdraw9, -675003;
TextDrawTextSize(Textdraw9, 397.000000, 10.000000);

Textdraw10 = TextDrawCreate(283.000000, 159.000000, "Login");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 0);
TextDrawLetterSize(Textdraw10, 1.320000, 3.200000);
TextDrawColor(Textdraw10, 16711935);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
TextDrawSetSelectable(Textdraw10, 1);

Textdraw12 = TextDrawCreate(207.000000, 333.000000, "Have Fun");
TextDrawBackgroundColor(Textdraw12, -16711681);
TextDrawFont(Textdraw12, 0);
TextDrawLetterSize(Textdraw12, 2.019999, 5.19999;
TextDrawColor(Textdraw12, 16711935);
TextDrawSetOutline(Textdraw12, 1);
TextDrawSetProportional(Textdraw12, 1);

Textdraw13 = TextDrawCreate(277.000000, 207.000000, "Forum");
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 0);
TextDrawLetterSize(Textdraw13, 1.320000, 3.200000);
TextDrawColor(Textdraw13, 65535);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 1);
TextDrawSetSelectable(Textdraw13, 1);

Textdraw14 = TextDrawCreate(287.000000, 252.000000, "Quit");
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 0);
TextDrawLetterSize(Textdraw14, 1.320000, 3.200000);
TextDrawColor(Textdraw14, -16776961);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
TextDrawSetSelectable(Textdraw14, 1);

SelectTextDraw(playerid, 0xFF4040AA);
}
Reply
#2

pawn Код:
TextDrawShowForPlayer(playerid , TextDraw);
Reply
#3

Maybe it's because you never show it(not in this code atleast)?

If you want to show a textdraw to a player, use TextDrawShowForPlayer

EDIT: too late.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)