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



Textdraw help - Loinal - 03.08.2016

PHP код:
Textdraw1 = TextDrawCreate(246.399948, 129.919998, "411");
TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
TextDrawTextSize(Textdraw1, 167.200027, 129.173309);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, -1);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 0);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawFont(Textdraw1, 5);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetPreviewModel(Textdraw1, 411);
TextDrawSetPreviewRot(Textdraw1, 0.000000, 1.000000, 18.000000, 1.000000); 
PHP код:
D:\samp folder\XtremeX V9\gamemodes\XtremeX.pwn(1813) : error 017: undefined symbol "TextDrawSetPreviewModel"
D:\samp folder\XtremeX V9\gamemodes\XtremeX.pwn(1814) : error 017: undefined symbol "TextDrawSetPreviewRot" 



Re: Textdraw help - Shinja - 03.08.2016

The textdraw MUST use the font type TEXT_DRAW_FONT_MODEL_PREVIEW

PHP код:
TextDrawFont(Textdraw1, TEXT_DRAW_FONT_MODEL_PREVIEW); 



Re: Textdraw help - Loinal - 03.08.2016

Still send me that error


Re: Textdraw help - Shinja - 03.08.2016

Looks like he functions aren't added for you yet
Update you includes/plugins and server files to last version
http://sa-mp.com/download.php
Copy the downloaded server files in your server directory and overwrite all


Re: Textdraw help - Loinal - 03.08.2016

it show the car with a black dialog


Re: Textdraw help - Shinja - 03.08.2016

Yeah thats your code, its Infernus id.
Errors gone?