TextDrawLetterSize
#1

hey i made that
PHP код:
new Text:welcometext;
public 
OnPlayerConnect(playerid)
{
    
TextDrawColor(welcometext0x00FF00FF);
    
TextDrawShowForPlayer(playeridwelcometext);
    
TextDrawLetterSize(welcometext10.00010.000);
    
TextDrawFont(welcometext3);
    
TextDrawAlignment(welcometext2);
    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
Reply
#2

Create one with a filterscript. There are tons of TextDrawCreators that will do it correct.
Reply
#3

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);
Reply
#4

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

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

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)