Problema com textdraw
#3

As Textdraws estгo em CreatePlayerTextDraw, e essa funзгo precisa do parвmetro "playerid"..
E a public OnGameModeInit() nгo possui este parвmetro, logo nгo esta criando as textdraws..
O melhor local pra colocar й no OnPlayerConnect, assim elas serгo criadas.

O seu comando /teste esta correto, sу isso que estava errado mesmo.

Код:
new PlayerText:gText1[MAX_PLAYERS];
new PlayerText:gText2[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	CreateTextDraws(playerid);
	return 1;
}

CreateTextDraws(playerid)
{
	gText1[playerid] = CreatePlayerTextDraw(playerid, 261.250000, 164.499984, "clicavel ussuario");
	PlayerTextDrawLetterSize(playerid, gText1[playerid], 0.446249, 1.051666);
	PlayerTextDrawAlignment(playerid, gText1[playerid], 1);
	PlayerTextDrawColor(playerid, gText1[playerid], -16777814);
	PlayerTextDrawSetShadow(playerid, gText1[playerid], 0);
	PlayerTextDrawSetOutline(playerid, gText1[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, gText1[playerid], 255);
	PlayerTextDrawFont(playerid, gText1[playerid], 1);
	PlayerTextDrawSetProportional(playerid, gText1[playerid], 1);
	//PlayerTextDrawTextSize(playerid, gText1[playerid], 0.446249, 1.051666);
	PlayerTextDrawSetSelectable(playerid, gText1[playerid], 1);

	gText2[playerid] = CreatePlayerTextDraw(playerid, 266.875000, 211.166717, "clicavel senha");
	PlayerTextDrawLetterSize(playerid, gText2[playerid], 0.443749, 1.022499);
	PlayerTextDrawAlignment(playerid, gText2[playerid], 1);
	PlayerTextDrawColor(playerid, gText2[playerid], -2139062017);
	PlayerTextDrawSetShadow(playerid, gText2[playerid], 0);
	PlayerTextDrawSetOutline(playerid, gText2[playerid], 1);
	PlayerTextDrawBackgroundColor(playerid, gText2[playerid], 255);
	PlayerTextDrawFont(playerid, gText2[playerid], 1);
	PlayerTextDrawSetProportional(playerid, gText2[playerid], 1);
	PlayerTextDrawTextSize(playerid, gText2[playerid], 0.443749, 1.022499);
	PlayerTextDrawSetSelectable(playerid, gText2[playerid], 1);
	return 1;
}
Reply


Messages In This Thread
Problema com textdraw - by MrJanitor - 24.02.2017, 06:25
Re: Problema com textdraw - by Carlos001 - 24.02.2017, 11:03
Re: Problema com textdraw - by JeffSantos2 - 24.02.2017, 15:57
Re: Problema com textdraw - by Whoo - 24.02.2017, 16:24
Re: Problema com textdraw - by JeffSantos2 - 24.02.2017, 16:31
Re: Problema com textdraw - by Whoo - 24.02.2017, 17:02
Re: Problema com textdraw - by JeffSantos2 - 24.02.2017, 17:24
Re: Problema com textdraw - by Whoo - 24.02.2017, 17:30
Re: Problema com textdraw - by JeffSantos2 - 24.02.2017, 17:35
Re: Problema com textdraw - by KinG7 - 24.02.2017, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)