Textdraw help.
#1

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

https://sampwiki.blast.hk/wiki/PlayerTextDrawShow
Reply
#3

What is actually wrong?
Reply
#4

It does not show up the textdraw.
Reply
#5

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

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

This is the correct format

PHP код:
new Text:FR2012;//on top of your script
public OnGameModeInit()
{
    
FR2012 = TextDrawCreate(51, 321, "FR-2012");
    
TextDrawLetterSize(Text:FR2012, 0.5, 1.5);
    
TextDrawTextSize(Text:FR2012, 1, 2);
    
TextDrawAlignment(Text:FR2012, 0);
    
TextDrawColor(Text:FR2012, -65366);
    
TextDrawUseBox(Text:FR2012, 0);
    
TextDrawSetShadow(Text:FR2012, 2);
    
TextDrawBoxColor(Text:FR2012, -1347440726);
    
TextDrawSetOutline(Text:FR2012, 2);
    
TextDrawBackgroundColor(Text:FR2012, 170);
    
TextDrawFont(Text:FR2012, 3);
    
TextDrawSetProportional(Text:FR2012, 1);
}
public 
OnPlayerSpawn(playerid)
{
        
TextDrawShowForPlayer(playerid, FR2012);
    return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)