06.11.2012, 15:22
Hello guys. I want to make something like when the dialog 5 appears, and the player enters the id, it goes back again to dialog 5 again and show the name or id of the weapon instead of weapon 1,weapon 2 and weapon 3 . Help will really be appreciated. Thanks
Код:
ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Weapon","Weapon 1 \nWeapon 2 \nWeapon 3","OK","Cancel"); if(dialogid==5) { if(response) { if(listitem==0) { ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"Weapon ID","Enter weapon ID","OK","Cancel"); } if(listitem==1) { ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"Weapon ID","Enter weapon ID","OK","Cancel"); } if(listitem==2) { ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"Weapon ID","Enter weapon ID","OK","Cancel"); } }