TextDraws
#1

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?
Reply
#2

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.
Reply
#3

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?
Reply
#4

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.
Reply
#5

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
Reply
#6

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..
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)