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



Textdraw - GoldenLion - 19.03.2017

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?


Re: Textdraw - Toroi - 19.03.2017

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


Re: Textdraw - GoldenLion - 19.03.2017

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


Re: Textdraw - Toroi - 19.03.2017

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


Re: Textdraw - GoldenLion - 19.03.2017

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



Re: Textdraw - TitanX - 19.03.2017

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



Re: Textdraw - GoldenLion - 19.03.2017

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.


Re: Textdraw - Toroi - 19.03.2017

Код:
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.


Re: Textdraw - GoldenLion - 19.03.2017

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.


Re: Textdraw - TitanX - 19.03.2017

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