Textdraw
#1

Hi, I created some textdraws, but when I show them they don't look like what they are supposed to be.
This is what it looks like: https://gyazo.com/d4ad6f78b0cff84d06cc07def3d664f9
But this is what it's supposed to look like: https://gyazo.com/5c6731a7fcd0aa21e0cb523e62c1e31c

This is how I create them:
Код:
	g_Textdraw[29] = TextDrawCreate(487.000000, 148.560089, "_");
	TextDrawLetterSize(g_Textdraw[29], 0.000000, 8.449995);
	TextDrawTextSize(g_Textdraw[29], 620.000000, 0.000000);
	TextDrawAlignment(g_Textdraw[29], 1);
	TextDrawColor(g_Textdraw[29], -1);
	TextDrawUseBox(g_Textdraw[29], 1);
	TextDrawBoxColor(g_Textdraw[29], 125);
	TextDrawSetShadow(g_Textdraw[29], 0);
	TextDrawSetOutline(g_Textdraw[29], 0);
	TextDrawBackgroundColor(g_Textdraw[29], 255);
	TextDrawFont(g_Textdraw[29], 1);
	TextDrawSetProportional(g_Textdraw[29], 1);
	TextDrawSetShadow(g_Textdraw[29], 0);

	g_Textdraw[30] = TextDrawCreate(498.000000, 182.719985, "CROUCH AND HOLD N");
	TextDrawLetterSize(g_Textdraw[30], 0.309500, 1.409600);
	TextDrawAlignment(g_Textdraw[30], 1);
	TextDrawColor(g_Textdraw[30], -1);
	TextDrawSetShadow(g_Textdraw[30], 0);
	TextDrawSetOutline(g_Textdraw[30], 0);
	TextDrawBackgroundColor(g_Textdraw[30], 255);
	TextDrawFont(g_Textdraw[30], 1);
	TextDrawSetProportional(g_Textdraw[30], 1);
	TextDrawSetShadow(g_Textdraw[30], 0);

	g_Textdraw[31] = TextDrawCreate(498.500000, 200.079956, "TO PLANT THE BOMB.");
	TextDrawLetterSize(g_Textdraw[31], 0.309500, 1.409600);
	TextDrawAlignment(g_Textdraw[31], 1);
	TextDrawColor(g_Textdraw[31], -1);
	TextDrawSetShadow(g_Textdraw[31], 0);
	TextDrawSetOutline(g_Textdraw[31], 0);
	TextDrawBackgroundColor(g_Textdraw[31], 255);
	TextDrawFont(g_Textdraw[31], 1);
	TextDrawSetProportional(g_Textdraw[31], 1);
	TextDrawSetShadow(g_Textdraw[31], 0);
That "BOMBSITE A" textdraw is a player textdraw though and it works properly, but the other 3 global textdraws don't. What's up here?
Reply
#2

Have you considered using a ~n~ew line instead of a new textdraw?
Reply
#3

I don't want to and that's not a fix.
Reply
#4

If you want to, can you show us how you are you showing the textdraw to the players?
Reply
#5

That's not important, but here you are:
Код:
for (new j = 29; j <= 31; j++) TextDrawShowForPlayer(i, g_Textdraw[i]);
Reply
#6

PHP код:
for (new 2932j++) TextDrawShowForAll(g_Textdraw[i]); 
Reply
#7

Quote:
Originally Posted by TitanX
Посмотреть сообщение
PHP код:
for (new 2932j++) TextDrawShowForAll(g_Textdraw[i]); 
That's exactly the same thing and I don't want to show it for everyone.
Reply
#8

Код:
for (new j = 29; j <= 31; j++) TextDrawShowForPlayer(i, g_Textdraw[j]);
You used [i] instead of [j], it was important after all.

Try not to being so prepotent when asking for help, mister.
Reply
#9

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Код:
for (new j = 29; j <= 31; j++) TextDrawShowForPlayer(i, g_Textdraw[j]);
You used [i] instead of [j], it was important after all.

Try not to being so prepotent when asking for help, mister.
I didn't notice that, thank you.
Reply
#10

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Код:
for (new j = 29; j <= 31; j++) TextDrawShowForPlayer(i, g_Textdraw[j]);
You used [i] instead of [j], it was important after all.

Try not to being so prepotent when asking for help, mister.
gg man didn't notice it too xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)