About Dialog [HELP!]
#3

Quote:
Originally Posted by Norck
Посмотреть сообщение
Command:
pawn Код:
if(strcmp("/shop", cmdtext, true, 10) == 0)
    {
      if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
      if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
      else
      {
      if(!IsPlayerInRangeOfPoint(playerid,4.0,-28.0168,-89.9490,1003.5469)) return SendClientMessage(playerid,COLOR_RED,"You Have To Be In Market 24/7");
      else
      {
      SendClientMessage(playerid, COLOR_RED, "Welcome To Market 24/7");
      ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Market 24/7 Menu","Sprunk (Coast $50)\nBeer (Coast $100)\nWine (Coast $100)\nCigarette (Coast $50)\nScore Menu","Buy","Cancel");
      }
      }
      return 1;
    }
And you need to modify code of the dialogid 7 in your OnDialogResponse callback. Like:
pawn Код:
// OnDialogResponse, dialogid=7
if(listitem == 4)
{
    ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Buy Score Menu","10 Score (Coast $1000)\n50 Score (Coast $10000)\n100 Score (Coast $50000)\n500 Score (Coast $1000000)","Buy","Cancel");
}
Anyway, show that piece of OnDialogResponse callback if you want me to make a complete code.
Thanks dude
Reply


Messages In This Thread
About Dialog [HELP!] - by lyrics - 17.08.2011, 09:04
Re: About Dialog [HELP!] - by Norck - 17.08.2011, 09:36
Re: About Dialog [HELP!] - by lyrics - 17.08.2011, 09:40
Re: About Dialog [HELP!] - by lyrics - 17.08.2011, 09:43
Re: About Dialog [HELP!] - by Norck - 17.08.2011, 09:47
Re: About Dialog [HELP!] - by lyrics - 17.08.2011, 09:49

Forum Jump:


Users browsing this thread: 6 Guest(s)