SA-MP Forums Archive
Textdraw Problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw Problem (/showthread.php?tid=155144)



Textdraw Problem - (.Aztec); - 17.06.2010

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);



Re: Textdraw Problem - Master[Pro] - 17.06.2010

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


Re: Textdraw Problem - (.Aztec); - 17.06.2010

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.


Re: Textdraw Problem - Antonio [G-RP] - 17.06.2010

Set a 15 second timer to hide the textdraw


Re: Textdraw Problem - Master[Pro] - 17.06.2010

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

Bye and regards