TextDrawLetterSize - 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: TextDrawLetterSize (
/showthread.php?tid=287882)
TextDrawLetterSize -
wumpyc - 05.10.2011
hey i made that
PHP код:
new Text:welcometext;
public OnPlayerConnect(playerid)
{
TextDrawColor(welcometext, 0x00FF00FF);
TextDrawShowForPlayer(playerid, welcometext);
TextDrawLetterSize(welcometext, 10.000, 10.000);
TextDrawFont(welcometext, 3);
TextDrawAlignment(welcometext, 2);
return 1;
}
public OnFilterScriptInit()
{
welcometext = TextDrawCreate(150.0,300.0,"Welcome to European Trucking!");
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(welcometext);
return 1;
}
And TextDrawLetterSize doesnt work cause the size of letters dont change...help me pls
Re: TextDrawLetterSize -
Kingunit - 05.10.2011
Create one with a filterscript. There are tons of TextDrawCreators that will do it correct.
Re: TextDrawLetterSize -
Honest_Player - 05.10.2011
use this when u showing your PAWN code in post!
pawn Код:
TextDrawLetterSize(welcometext, 10.000, 10.000);
look in ur code u add double SIZE (10.000, 10.000) try this (10.000)
pawn Код:
TextDrawLetterSize(welcometext, 10.000);
Re: TextDrawLetterSize -
Jeffry - 05.10.2011
pawn Код:
new Text:welcometext;
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, welcometext);
return 1;
}
public OnFilterScriptInit()
{
welcometext = TextDrawCreate(150.0,300.0,"Welcome to European Trucking!");
TextDrawColor(welcometext, 0x00FF00FF);
TextDrawLetterSize(welcometext, 0.500, 1.500);
TextDrawFont(welcometext, 3);
TextDrawAlignment(welcometext, 2);
return 1;
}
public OnFilterScriptExit()
{
TextDrawDestroy(welcometext);
return 1;
}
Should work now.
PS: 10 as letter size is a way too big.
Jeffry
Re: TextDrawLetterSize -
cyber_punk - 05.10.2011
Quote:
Originally Posted by Honest_Player
use this when u showing your PAWN code in post!
pawn Код:
TextDrawLetterSize(welcometext, 10.000, 10.000);
look in ur code u add double SIZE (10.000, 10.000) try this (10.000)
pawn Код:
TextDrawLetterSize(welcometext, 10.000);
|
That's not correct there is an X and Y in TextDrawLetterSize, ****** correctly posted the answer, he is showing the Textdraw before making the changes......
Re: TextDrawLetterSize -
wumpyc - 05.10.2011
Quote:
Originally Posted by ******
You show the text to the player before you set the letter size - they see the old version, not the new version.
|
I made stupid mistake xD thanks i gave you rep