Textdraw not showing up
#1

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;
}
Reply
#2

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

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 :/
Reply
#4

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

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

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

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

Still the same
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)