Servus.
Da ich mich gerade da etwas am reinarbeiten bin, hänge ich dort gerade ein wenig fest.
Ich möchte dieses Textdraw anklicken können
Textdraw0 = TextDrawCreate(250.000000, 180.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 5);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 70.000000, 80.000000);
TextDrawSetPreviewModel(Textdraw0, 43);
TextDrawSetPreviewRot(Textdraw0, -16.000000, 0.000000, -15.000000, 1.000000);
TextDrawSetSelectable(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 5);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 70.000000, 80.000000);
TextDrawSetPreviewModel(Textdraw0, 43);
TextDrawSetPreviewRot(Textdraw0, -16.000000, 0.000000, -15.000000, 1.000000);
TextDrawSetSelectable(Textdraw0, 1);
Hab auch das drin:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw8)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
if(clickedid == Textdraw7)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
SelectTextDraw(playerid, 0xA3B4C5FF);
return 1;
}
{
if(clickedid == Textdraw8)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
if(clickedid == Textdraw7)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
SelectTextDraw(playerid, 0xA3B4C5FF);
return 1;
}
Aber irgendwie wird da kein Mauszeiger angezeigt. Hoffe mir kann da jemand auf die Sprünge helfen.