03.10.2013, 23:59
No outro post eu tavo com problema em selecionar, mas jб resolvi. Agora estou com outro problema...
Quando clico na textdraw, as funзхes nгo sгo chamadas!
OnPlayerConnect
OnPlayerClickTextDraw
Quando clico na textdraw, as funзхes nгo sгo chamadas!
OnPlayerConnect
PHP код:
tdimgduck = CreatePlayerTextDraw(playerid,538.000000, 409.000000, "ooo");
PlayerTextDrawBackgroundColor(playerid,tdimgduck, 255);
PlayerTextDrawFont(playerid,tdimgduck, 1);
PlayerTextDrawLetterSize(playerid,tdimgduck, 0.449999, 0.899999);
PlayerTextDrawColor(playerid,tdimgduck, -1);
PlayerTextDrawSetOutline(playerid,tdimgduck, 0);
PlayerTextDrawSetProportional(playerid,tdimgduck, 1);
PlayerTextDrawSetShadow(playerid,tdimgduck, 1);
PlayerTextDrawUseBox(playerid,tdimgduck, 1);
PlayerTextDrawBoxColor(playerid,tdimgduck, 0);
PlayerTextDrawTextSize(playerid,tdimgduck, 569.000500, 12.000500);
PlayerTextDrawSetSelectable(playerid,tdimgduck, 1);
PHP код:
if(clickedid == Text:tdimgduck)
{
SendClientMessage(playerid, -1, "oi");
if (ButtonWasClicked[playerid] == 0)
{
ButtonWasClicked[playerid] = 1;
PlayerTextDrawHide(playerid, PlayerText:score);
return 1;
}
else
{
ButtonWasClicked[playerid] = 0;
PlayerTextDrawShow(playerid, PlayerText:score);
}
}