SA-MP Forums Archive
Textdraw not showing up - 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 not showing up (/showthread.php?tid=438217)



Textdraw not showing up - Sharp19 - 19.05.2013

Hey, this is my first time creating a textdraw and i tried a simple one but when its completed and i have added:

pawn Код:
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, websiteText);
    return 1;
}
Its showing the other textdraw which is included in gamemode, not showing mine D: whats wrong with it? Any one can help me please.

My code is:

pawn Код:
new Text:websiteText;

public OnGameModeInit()
{
   websiteText = TextDrawCreate(81.0, 317.0, "www.example.com");
   TextDrawColor(websiteText , 0xFF0000FF);
   TextDrawSetProportional(websiteText , 1);
   TextDrawSetShadow(websiteText , 1);
   return 1;
}
public OnPlayerConnect(playerid)
{
   TextDrawShowForPlayer(playerid, websiteText);
   return 1;
}



Re: Textdraw not showing up - Littlehelper - 19.05.2013

You don't have any font style picked for your Textdraw.


Re: Textdraw not showing up - Sharp19 - 19.05.2013

I had all the things that is needed to create the textdraw, but after it wasn't working, i removed some of them. If i put what you said it wont work. Its showing other textdraw which is already included in gamemode when i use TextDrawShowForPlayer, but not showing mine that i created :/


Re: Textdraw not showing up - Littlehelper - 19.05.2013

pawn Код:
EXAMPLE = TextDrawCreate(81.0, 317.0, "www.example.com");
    TextDrawAlignment(EXAMPLE, 2);
    TextDrawBackgroundColor(EXAMPLE, 255);
    TextDrawFont(EXAMLPE, 1);
    TextDrawLetterSize(EXAMLPE, 0.310000, 1.000000);
    TextDrawColor(EXAMLPE, -1);
    TextDrawSetOutline(EXAMLPE, 1);
    TextDrawSetProportional(EXAMLPE, 1);
    TextDrawUseBox(EXAMLPE, 0);
    TextDrawBoxColor(EXAMLPE, 255);
    TextDrawTextSize(EXAMLPE, 863.000000, 882.000000);
Try putting this and see if it shows this?


Re: Textdraw not showing up - Sharp19 - 19.05.2013

Not working. Still the same problem as before, mine text isn't showing but other text which is from gamemode is showing. If i remove TextDrawShowForPlayer the text that is from gamemode doesn't show up. Only when i put that.


Re: Textdraw not showing up - DarkyTheAngel - 19.05.2013

pawn Код:
new
    Text:Website
;

public OnGameModeInit ( )
{
    Website = TextDrawCreate ( 227.500000 , 179.083389 , "www.example.com" ) ;
    TextDrawLetterSize       ( Website    , 0.393749   , 1.605833          ) ;
    TextDrawColor            ( Website    , 0xFF0000FF                     ) ;
    TextDrawSetProportional  ( Website    , 1                              ) ;
    TextDrawSetShadow        ( Website    , 1                              ) ;
    TextDrawFont             ( Website    , 2                              ) ;
    return ( 1 ) ;
}

public OnPlayerConnect ( playerid )
{
    TextDrawShowForPlayer ( playerid , Website ) ;
    return ( 1 ) ;
}



Re: Textdraw not showing up - Littlehelper - 19.05.2013

Quote:
Originally Posted by DarkyTheAngel
Посмотреть сообщение
pawn Код:
new
    Text:Website
;

public OnGameModeInit ( )
{
    Website = TextDrawCreate ( 227.500000 , 179.083389 , "www.example.com" ) ;
    TextDrawLetterSize       ( Website    , 0.393749   , 1.605833          ) ;
    TextDrawColor            ( Website    , 0xFF0000FF                     ) ;
    TextDrawSetProportional  ( Website    , 1                              ) ;
    TextDrawSetShadow        ( Website    , 1                              ) ;
    TextDrawFont             ( Website    , 2                              ) ;
    return ( 1 ) ;
}

public OnPlayerConnect ( playerid )
{
    TextDrawShowForPlayer ( playerid , Website ) ;
    return ( 1 ) ;
}
The amount of tabs is high in this one.


Re: Textdraw not showing up - Sharp19 - 19.05.2013

Still the same


Re: Textdraw not showing up - DarkyTheAngel - 19.05.2013

I think that the co-ordinates are a bit messed (I think). Try to change the textdraw string.


Re: Textdraw not showing up - Sharp19 - 19.05.2013

Can you please make a neat one? i want the text to appear at the top of mini map. I will learn from it if you guys make a neat one.