SA-MP Forums Archive
textdraw bugs! help - 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 bugs! help (/showthread.php?tid=525588)



textdraw bugs! help - Slicebook - 12.07.2014

Created textdraw and is somehow not good

where good:
http://kepfeltoltes.hu/view/140712/s...toltes.hu_.png

When I put this mode:
http://kepfeltoltes.hu/view/140712/s...toltes.hu_.png


Code:

// Create the textdraws:
Код:
	Textdraw0 = TextDrawCreate(511.000000, 400.000000, "World War");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 1);
	TextDrawLetterSize(Textdraw0, 0.600000, 3.000000);
	TextDrawColor(Textdraw0, -1);
	TextDrawSetOutline(Textdraw0, 0);
	TextDrawSetProportional(Textdraw0, 1);
	TextDrawSetShadow(Textdraw0, 1);
	TextDrawSetSelectable(Textdraw0, 0);

	Textdraw1 = TextDrawCreate(617.000000, 377.000000, "II");
	TextDrawBackgroundColor(Textdraw1, 255);
	TextDrawFont(Textdraw1, 1);
	TextDrawLetterSize(Textdraw1, 0.900000, 6.099999);
	TextDrawColor(Textdraw1, -16776961);
	TextDrawSetOutline(Textdraw1, 0);
	TextDrawSetProportional(Textdraw1, 1);
	TextDrawSetShadow(Textdraw1, 1);
	TextDrawSetSelectable(Textdraw1, 0);

	Textdraw2 = TextDrawCreate(513.000000, 335.000000, "tank"); //<< BUG
	TextDrawBackgroundColor(Textdraw2, -2105968384);
	TextDrawFont(Textdraw2, 5);
	TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
	TextDrawColor(Textdraw2, -1);
	TextDrawSetOutline(Textdraw2, 0);
	TextDrawSetProportional(Textdraw2, 1);
	TextDrawSetShadow(Textdraw2, 1);
	TextDrawUseBox(Textdraw2, 1);
	TextDrawBoxColor(Textdraw2, 255);
	TextDrawTextSize(Textdraw2, 130.000000, 130.000000);
	TextDrawSetSelectable(Textdraw2, 0);
How to fix?


Re : textdraw bugs! help - S4t3K - 12.07.2014

I can't see any "TextDrawSetPreviewModel" in your code.


Re: textdraw bugs! help - Slicebook - 12.07.2014

error 017: undefined symbol "TextDrawSetPreviewModel" don't work
please help! update includes


Re : textdraw bugs! help - S4t3K - 12.07.2014

Do you use the a_samp include of 0.3x+ ?
Because it seems not, the function DOES exist here


Re: textdraw bugs! help - FahadKing07 - 12.07.2014

Than how CJ came there if there is no TextDrawSetPreviewModel ?


Re : textdraw bugs! help - S4t3K - 12.07.2014

Then this is such a strange problem, but well observed, I haven't thought about this case.


Re: textdraw bugs! help - Slicebook - 13.07.2014

solved! a_samp replaced