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



Textdraw help. - TaLhA XIV - 26.07.2012

PHP код:
   paycheck[playerid] = CreatePlayerTextDraw(playerid240.0580.0"You got the paycheck");
    
PlayerTextDrawShow(playeridpaycheck[playerid]);
    
PlayerTextDrawAlignment(playeridpaycheck[playerid], 3);
    
PlayerTextDrawColor(playeridpaycheck[playerid], 0xFF0000FF); // Red text 
Why is this not working?Please help.


Re: Textdraw help. - Misiur - 26.07.2012

https://sampwiki.blast.hk/wiki/PlayerTextDrawShow


Re: Textdraw help. - Littlehelper - 26.07.2012

What is actually wrong?


Re: Textdraw help. - TaLhA XIV - 26.07.2012

It does not show up the textdraw.


Re: Textdraw help. - Misiur - 26.07.2012

Once again, did you use PlayerTextDrawShow? If not, it won't appear, even though it's created.


Re: Textdraw help. - TaLhA XIV - 26.07.2012

It is shown over there.Please someone create it for me or fix this please.


Re: Textdraw help. - nton - 26.07.2012

This is the correct format

PHP код:
new Text:FR2012;//on top of your script
public OnGameModeInit()
{
    
FR2012 TextDrawCreate(51321"FR-2012");
    
TextDrawLetterSize(Text:FR20120.51.5);
    
TextDrawTextSize(Text:FR201212);
    
TextDrawAlignment(Text:FR20120);
    
TextDrawColor(Text:FR2012, -65366);
    
TextDrawUseBox(Text:FR20120);
    
TextDrawSetShadow(Text:FR20122);
    
TextDrawBoxColor(Text:FR2012, -1347440726);
    
TextDrawSetOutline(Text:FR20122);
    
TextDrawBackgroundColor(Text:FR2012170);
    
TextDrawFont(Text:FR20123);
    
TextDrawSetProportional(Text:FR20121);
}
public 
OnPlayerSpawn(playerid)
{
        
TextDrawShowForPlayer(playeridFR2012);
    return 
1;