Textdraws not appearing
#3

Quote:
Originally Posted by JoaoPedro
Посмотреть сообщение
This line:
Код:
new PlayerText:Textdraw0;
What type is this? I think it's wrong...

Try change this line to:
Код:
new Text:Textdraw0;
It's fine, PlayerText: is a new type of textdraw.
These are per-player textdraws, not global ones and were added in samp 0.3e.

After creating textdraws, you still need to show them using PlayerTextDrawShow, as CreatePlayerTextDraw only creates them, they're not automatically shown.

https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
https://sampwiki.blast.hk/wiki/PlayerTextDrawShow

Код:
new PlayerText:Textdraw0;

public OnPlayerConnect(playerid)
{


   	//Text Draws
	Textdraw0 = CreatePlayerTextDraw(playerid, 502.000000, 104.000000, "Ghost Riders");
	PlayerTextDrawBackgroundColor(playerid, Textdraw0, 255);
	PlayerTextDrawFont(playerid, Textdraw0, 1);
	PlayerTextDrawLetterSize(playerid, Textdraw0, 0.500000, 1.000000);
	PlayerTextDrawColor(playerid, Textdraw0, -16776961);
	PlayerTextDrawSetOutline(playerid, Textdraw0, 0);
	PlayerTextDrawSetProportional(playerid, Textdraw0, 1);
	PlayerTextDrawSetShadow(playerid, Textdraw0, 1);
	PlayerTextDrawUseBox(playerid, Textdraw0, 1);
	PlayerTextDrawBoxColor(playerid, Textdraw0, 255);
	PlayerTextDrawTextSize(playerid, Textdraw0, 610.000000, 0.000000);
	PlayerTextDrawSetSelectable(playerid, Textdraw0, 0);
        PlayerTextDrawShow(playerid, TextDraw0);
Reply


Messages In This Thread
Textdraws not appearing - by Excelize - 20.12.2013, 03:42
Re: Textdraws not appearing - by JoaoPedro - 20.12.2013, 06:07
Re: Textdraws not appearing - by PowerPC603 - 20.12.2013, 07:14
Re: Textdraws not appearing - by Excelize - 20.12.2013, 09:23
Re: Textdraws not appearing - by Vince - 20.12.2013, 09:34
Re: Textdraws not appearing - by Excelize - 20.12.2013, 09:38
Re: Textdraws not appearing - by iOxide - 20.12.2013, 09:45
Re: Textdraws not appearing - by Excelize - 20.12.2013, 09:51
Re: Textdraws not appearing - by iOxide - 20.12.2013, 10:01
Re: Textdraws not appearing - by PowerPC603 - 20.12.2013, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)