Dialog problem
#2

try this
pawn Код:
if(dialogid == DIALOG_PLAYLIST)
{
   
        if(response)
        {
            switch(listitem)
            {

                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    case 0:
                    {
                    StopAudioStreamForPlayer(i);//stop music
                    }
                    case 1:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 2:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 3:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 4:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 5:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 6:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 7:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 8:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                }
            }
        }
        else
        {
            return 0;
        }
       
}
if(dialogid == DIALOG_MUSIC)
{
        if(response)
        {
       
            switch(listitem)
            {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    case 0:
                    {
                    StopAudioStreamForPlayer(i);//stop music
                    }
                    case 1:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 2:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 3:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 4:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 5:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 6:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 7:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 8:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 9:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 10:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 11:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 12:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 13:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 14:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 15:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 16:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 17:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 18:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 19:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 20:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 21:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 22:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 23:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 24:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 25:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                    case 26:
                    {
                    PlayAudioStreamForPlayer(i, "");
                    }
                }

            }
        }
        else
        {
            return 0;
        }
 }
 return 1;
}
Reply


Messages In This Thread
Dialog problem - by GGW - 03.08.2014, 12:47
Re: Dialog problem - by IceBilizard - 03.08.2014, 12:57
Re: Dialog problem - by Rifa4life - 03.08.2014, 14:36
Re: Dialog problem - by GGW - 03.08.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)