Hallo,
was mache ich falsch ? Mein Dialog wird nicht angezeigt:
if(strcmp(x_s,"adac",true) == 0)
{
if(sSpieler[playerid][Fraktion] == 11)
{
new counter = 0;
new pName[ MAX_PLAYER_NAME ], astring[MAX_PLAYERS ^ 2];
format(string, MAX_PLAYERS ^ 2, "");
for ( new aplayer; aplayer < MAX_PLAYERS; aplayer++ )
{
if( ADACGerufen[aplayer] > 0)
{
if ( !IsPlayerConnected ( aplayer ) ) continue;
PlayerDialogSelectBox[playerid][counter] = aplayer;
GetPlayerName ( aplayer , pName , MAX_PLAYER_NAME );
format ( astring , sizeof astring , "%s\n%s" , astring , pName );
}
}
ShowPlayerDialog ( playerid , ADACDialog , DIALOG_STYLE_LIST , "Folgende Spieler benötigen einen ADAC" , string, "Ok", "Abbruch");
}
else
{
SendClientMessage(playerid, Rot, "Sie sind kein Mitglied des ADACs.");
return 1;
}
}
MfG.