if(dialogid == DIALOG_CMDS){ if(response) { switch(liistitem) { case 0://show command menu dialog case 1: //put the ShowPlayerDialog you have in /w. } }}