Textdraw Problem
#1

Yeah, well, I have a bit of a problem.. My textdraws do not show up. At all..

Tell me what i'm doing wrong, please.

pawn Код:
new Text:RespawnText2;
pawn Код:
RespawnText2 = TextDrawCreate(460.000000, 418.000000, "You have been killed!");
    TextDrawBackgroundColor(RespawnText2, 255);
    TextDrawFont(RespawnText2, 0);
    TextDrawLetterSize(RespawnText2, 0.600000, 1.000000);
    TextDrawColor(RespawnText2, -16776961);
    TextDrawSetOutline(RespawnText2, 1);
    TextDrawSetProportional(RespawnText2, 1);
pawn Код:
TextDrawShowForPlayer(playerid, Text:RespawnText2);
Reply
#2

Hello, looking good I will explain.

The new Text:RespawnText2; this okay

The RespawnText2 = TextDrawCreate(460.000000, 418.000000, "You have been killed!");
TextDrawBackgroundColor(RespawnText2, 255);
TextDrawFont(RespawnText2, 0);
TextDrawLetterSize(RespawnText2, 0.600000, 1.000000);
TextDrawColor(RespawnText2, -16776961);
TextDrawSetOutline(RespawnText2, 1);
TextDrawSetProportional(RespawnText2, 1);
this okay (generally is puts in OnGameModeInit)

The TextDrawShowForPlayer(playerid, Text:RespawnText2); this okay (this it must put in OnPlayerDeath)

And adds this TextDrawHideForPlayer(playerid, RespawnText2); in OnPlayerSpawn (this is for that disappears the TextDraw)

bye and greetings

I hope avert helped
Reply
#3

Quote:
Originally Posted by Master[Pro
]
Hello, looking good I will explain.

The new Text:RespawnText2; this okay

The RespawnText2 = TextDrawCreate(460.000000, 418.000000, "You have been killed!");
TextDrawBackgroundColor(RespawnText2, 255);
TextDrawFont(RespawnText2, 0);
TextDrawLetterSize(RespawnText2, 0.600000, 1.000000);
TextDrawColor(RespawnText2, -16776961);
TextDrawSetOutline(RespawnText2, 1);
TextDrawSetProportional(RespawnText2, 1);
this okay (generally is puts in OnGameModeInit)

The TextDrawShowForPlayer(playerid, Text:RespawnText2); this okay (this it must put in OnPlayerDeath)

And adds this TextDrawHideForPlayer(playerid, RespawnText2); in OnPlayerSpawn (this is for that disappears the TextDraw)

bye and greetings

I hope avert helped
Hmm, sadly, it's not working still. It appears for a split second, and disappears.
Reply
#4

Set a 15 second timer to hide the textdraw
Reply
#5

Friend, morning thee help that live in Chile then here already is of night

Bye and regards
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)