dimanche 17 juillet 2016

TextDraw Positioning help?

I'm trying to make a TextDraw for connection and disconnection alerts.
However the textdraw cuts itself off and goes on the next line.
Does anyone have any suggestions? I don't get any errors or anything. I'll post the textdraw itself code and a picture.

The textdraw is the bottom right that isn't working properly.

PHP Code:

    if (JoinText == Text:-1) {
        
JoinText TextDrawCreate(622.0389.0name);
        
TextDrawLetterSize(JoinText0.351.0);
        
TextDrawSetShadow(JoinText1);
        
TextDrawAlignment(JoinText3);
    } 

Another problem that I'm having is with my Speedo. On the OnPlayerSpawn callback I'm trying to display a speedo Textdraw however I get three warnings.

Code:

(673) : warning 213: tag mismatch
(674) : warning 213: tag mismatch
(675) : warning 213: tag mismatch
Here is my Textdraw code.

PHP Code:

    TextDrawShowForPlayer(playerid,SpeedoText[playerid]);
     
SpeedoText[playerid] = TextDrawCreate(530.0340.5"");
    
PlayerTextDrawLetterSize(playeridSpeedoText[playerid], 0.51.6);
    
PlayerTextDrawSetProportional(playeridSpeedoText[playerid], 1);
    
PlayerTextDrawSetOutline(playeridSpeedoText[playerid], 1); 

Warnings are on 673, 674, 675

PHP Code:

    PlayerTextDrawLetterSize(playeridSpeedoText[playerid], 0.51.6);
    
PlayerTextDrawSetProportional(playeridSpeedoText[playerid], 1);
    
PlayerTextDrawSetOutline(playeridSpeedoText[playerid], 1); 

Thanks for your time.

PS Sorry for the huge picture


Last edited by Tass007; 17/07/2016 at 07:56 AM.

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.



TextDraw Positioning help?

Aucun commentaire:

Enregistrer un commentaire