Hallo com,
irgendwie hab ich hier das Problem dass nur einer von drei Auswählbaren TextDraw auch wirklich Auswählbar ist. Ich verstehe einfach nicht wo der Fehler Liegen soll... hier mal alles was damit zu tun hat:
Code
Unter OnPlayerConnect:
Autohaus_Down[playerid] = CreatePlayerTextDraw(playerid,229.000000, 316.000000, "Zuruek");
PlayerTextDrawBackgroundColor(playerid,Autohaus_Down[playerid], 255);
PlayerTextDrawFont(playerid,Autohaus_Down[playerid], 3);
PlayerTextDrawLetterSize(playerid,Autohaus_Down[playerid], 0.439999, 1.399999);
PlayerTextDrawColor(playerid,Autohaus_Down[playerid], 255);
PlayerTextDrawSetOutline(playerid,Autohaus_Down[playerid], 0);
PlayerTextDrawSetProportional(playerid,Autohaus_Down[playerid], 1);
PlayerTextDrawSetShadow(playerid,Autohaus_Down[playerid], 1);
PlayerTextDrawUseBox(playerid,Autohaus_Down[playerid], 1);
PlayerTextDrawBoxColor(playerid,Autohaus_Down[playerid], -1);
PlayerTextDrawTextSize(playerid,Autohaus_Down[playerid], 278.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Autohaus_Down[playerid], 1);
Autohaus_Kaufen[playerid] = CreatePlayerTextDraw(playerid,285.000000, 316.000000, " Kaufen");
PlayerTextDrawBackgroundColor(playerid,Autohaus_Kaufen[playerid], 255);
PlayerTextDrawFont(playerid,Autohaus_Kaufen[playerid], 3);
PlayerTextDrawLetterSize(playerid,Autohaus_Kaufen[playerid], 0.509999, 1.400000);
PlayerTextDrawColor(playerid,Autohaus_Kaufen[playerid], 255);
PlayerTextDrawSetOutline(playerid,Autohaus_Kaufen[playerid], 0);
PlayerTextDrawSetProportional(playerid,Autohaus_Kaufen[playerid], 1);
PlayerTextDrawSetShadow(playerid,Autohaus_Kaufen[playerid], 1);
PlayerTextDrawUseBox(playerid,Autohaus_Kaufen[playerid], 1);
PlayerTextDrawBoxColor(playerid,Autohaus_Kaufen[playerid], -1);
PlayerTextDrawTextSize(playerid,Autohaus_Kaufen[playerid], 363.000000, 16.000000);
PlayerTextDrawSetSelectable(playerid,Autohaus_Kaufen[playerid], 1);
Autohaus_Up[playerid] = CreatePlayerTextDraw(playerid,370.000000, 316.000000, "Weiter");
PlayerTextDrawBackgroundColor(playerid,Autohaus_Up[playerid], 255);
PlayerTextDrawFont(playerid,Autohaus_Up[playerid], 3);
PlayerTextDrawLetterSize(playerid,Autohaus_Up[playerid], 0.559998, 1.399999);
PlayerTextDrawColor(playerid,Autohaus_Up[playerid], 255);
PlayerTextDrawSetOutline(playerid,Autohaus_Up[playerid], 0);
PlayerTextDrawSetProportional(playerid,Autohaus_Up[playerid], 1);
PlayerTextDrawSetShadow(playerid,Autohaus_Up[playerid], 1);
PlayerTextDrawUseBox(playerid,Autohaus_Up[playerid], 1);
PlayerTextDrawBoxColor(playerid,Autohaus_Up[playerid], -1);
PlayerTextDrawTextSize(playerid,Autohaus_Up[playerid], 431.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,Autohaus_Up[playerid], 1);
Alles anzeigen
Code
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == Autohaus_Up[playerid])
{
ocmd_up(playerid,"");
return 1;
}
else
if(playertextid == Autohaus_Down[playerid])
{
ocmd_down(playerid,"");
return 1;
}
else
if(playertextid == Autohaus_Kaufen[playerid])
{
SendClientMessage(playerid,COLOR_WHITE,"okay");
return 1;
}
return 0;
}
Alles anzeigen
Code
Unter OnDialogResponse:
SelectTextDraw(playerid,COLOR_WHITE);
PlayerTextDrawSetString(playerid,Autohaus_Name[playerid],string);
PlayerTextDrawSetString(playerid,Autohaus_Kosten[playerid],string2);
PlayerTextDrawShow(playerid,Autohaus_Hintergrund[playerid]);
PlayerTextDrawShow(playerid,Autohaus_Kaufen[playerid]);
PlayerTextDrawShow(playerid,Autohaus_Down[playerid]);
PlayerTextDrawShow(playerid,Autohaus_Name[playerid]);
PlayerTextDrawShow(playerid,Autohaus_Kosten[playerid]);
PlayerTextDrawShow(playerid,Autohaus_Up[playerid]);
Also der Kaufen Button Funktioniert aber der "Weiter" und "Zurueck" Button irgendwie nicht.. Vielen Dank schonmal im vorraus