Sorry das ich erst heute früh schreibe ;D
Das Funktioniert nicht !
Es zeigt mir nicht den Dialog an
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_YES)
{
new Backpackstr[500];
if(Backpack[playerid][Wasser] > 0)
{
format(Backpackstr, sizeof Backpackstr, "%sWasser %i\n", Backpackstr, Backpack[playerid][Wasser]);
}
if(Backpack[playerid][Saft] > 0)
{
format(Backpackstr, sizeof Backpackstr, "%sSaft %i\n", Backpackstr, Backpack[playerid][Saft]);
}
if(Backpack[playerid][Brot] > 0)
{
format(Backpackstr, sizeof Backpackstr, "%sBrot %i\n", Backpackstr, Backpack[playerid][Brot]);
}
if(Backpack[playerid][Benzin] > 0)
{
format(Backpackstr, sizeof Backpackstr, "%sBenzin %i\n", Backpackstr, Backpack[playerid][Benzin]);
}
ShowPlayerDialog(playerid, diaBackpackItems, DIALOG_STYLE_LIST, "Backpack Inhalt", Backpackstr, "Okay", "Danke");
}
return 1;
}