• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] server commands
#2
You should replace "Item 1\nItem 2\n [...]" for "Server Commands" when you're showing up this dialog to a player.



Also if you want to click in the item and show another dialog box as you said, you should use the?Callback?OnDialogReponse, check the dialogid and then check if the selected listitem is zero (the first one starts at zero).



Example:

Code:
// inside of OnDialogResponse:

if(dialogid == yourdialogid) {

? ?if(!response) return 1;

? ?switch(listitem) {

? ? ? case 0: ShowPlayerDialog(yourSecondDialog);

? ?}

}
  Reply


Messages In This Thread
server commands - by Funkar69 - 2021-01-14, 10:32 PM
RE: server commands - by Smyle - 2021-01-16, 08:47 PM

Forum Jump: