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



TextDraws - JasonRiggs - 02.07.2017

Hello, I've created a textdraw but I'm looking forward to make it fit the whole screen of the player which performs the command, The textdraw is working perfectly, but not with the size which I want it, I want it to fit the screen, What to adjust?


Re: TextDraws - Meller - 02.07.2017

First set the position of the textdraw to 0,0 which will be the left uper corner. Then set the string to anything, I usually place a dot. I usually then set the font to 0, and font size to 0.0 and 50.0 (seems to make it on all screens). Then set the text size to 640.0 since the GTA SA textdraws goes after 640x400 I think. (Might be wrong).

This usually does the trick for me.


Re: TextDraws - JasonRiggs - 02.07.2017

A friend of mine said that it differs from a PC to another, because of resolutions, Is there any method to make it Fit to the screen?


Re: TextDraws - Meller - 02.07.2017

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
A friend of mine said that it differs from a PC to another, because of resolutions, Is there any method to make it Fit to the screen?
Just make it 100 or whatever you believe would be good, doing so will make it go off screen at all screens.


Re: TextDraws - Freedom. - 02.07.2017

Use old Zamaroht TD editor to make textdraw. It'll fix and look readable for every screen.

https://sampforum.blast.hk/showthread.php?tid=117851


Re: TextDraws - JasonRiggs - 02.07.2017

I used Ipleomax TD editor, and it gave me the code with "CreatePlayerTextDraw", Whatever..

I get this errors..

Quote:

BCRP.pwn(26419) : error 035: argument type mismatch (argument 2)
BCRP.pwn(26433) : error 035: argument type mismatch (argument 2)
BCRP.pwn(39645) : error 035: argument type mismatch (argument 2)
BCRP.pwn(3964 : error 035: argument type mismatch (argument 2)

In these lines

PHP код:
PlayerTextDrawShow(playerid, HouseLights); 
PHP код:
PlayerTextDrawHide(playerid, HouseLights); 
PHP код:
PlayerTextDrawShow(i, HouseLights); 
PHP код:
PlayerTextDrawHide(i, HouseText:HouseLights); 
EDIT:

Quote:

PlayerTextDrawShow(playerid, HouseLights[playerid]);

Wow forgot that, Thanks to the one who reminded me, Rep for that..


Re: TextDraws - Freedom. - 02.07.2017

Код:
PlayerTextDrawShow(playerid, HouseLights[playerid]);