Schönen guten Abend,
ich habe komischerweise das Problem, das die TextDraws sofort wieder verschwinden ?
Ich kann mir keinen reim drauf bilden ?
new PlayerText:maenlich[MAX_PLAYERS],
PlayerText:weiblich[MAX_PLAYERS];
maenlich[playerid] = CreatePlayerTextDraw(playerid,283.000000,168.255554,"_");
PlayerTextDrawLetterSize(playerid,maenlich[playerid],0.000000,7.749176);
PlayerTextDrawFont(playerid,maenlich[playerid],TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawTextSize(playerid,maenlich[playerid],211.333343,0.000000);
PlayerTextDrawBackgroundColor(playerid,maenlich[playerid],100);
PlayerTextDrawColor(playerid,maenlich[playerid],-1);
PlayerTextDrawUseBox(playerid,maenlich[playerid],1);
PlayerTextDrawBoxColor(playerid,maenlich[playerid],100);
PlayerTextDrawSetPreviewModel(playerid,maenlich[playerid],411);
PlayerTextDrawSetSelectable(playerid,maenlich[playerid],1);
weiblich[playerid] = CreatePlayerTextDraw(playerid,433.333343,168.255554,"_");
PlayerTextDrawLetterSize(playerid,weiblich[playerid],0.000000,7.749176);
PlayerTextDrawFont(playerid,weiblich[playerid],TEXT_DRAW_FONT_MODEL_PREVIEW);
PlayerTextDrawTextSize(playerid,weiblich[playerid],211.333343,0.000000);
PlayerTextDrawColor(playerid,weiblich[playerid],-1);
PlayerTextDrawUseBox(playerid,weiblich[playerid],1);
PlayerTextDrawBoxColor(playerid,weiblich[playerid],100);
PlayerTextDrawSetPreviewModel(playerid,weiblich[playerid],411);
PlayerTextDrawSetSelectable(playerid,weiblich[playerid],1);
PlayerTextDrawShow(playerid,maenlich[playerid]);
PlayerTextDrawShow(playerid,weiblich[playerid]);
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid==maenlich[playerid])
{
SendClientMessage(playerid,Orange,"Klappt");
}
if(playertextid==weiblich[playerid])
{
SendClientMessage(playerid,Orange,"Klappt");
}
return 1;
}
Wo liegt bitte der Fehler ? -.-