Why dialog is not working?
#8

Quote:
Originally Posted by adrianlouise
Посмотреть сообщение
Remove Params Cause You're not using it, And instead of wasting Your time on enums, Just Use defines

P.S: in enums the ID Will be generated Randomly So It can Cause a bug :P (it can Generate Same IDs For 2 Dialogs)
Код:
#define DIALOG_UNUSED 0
#define DIALOG_LOGIN 1
#define DIALOG_REGISTER 2
#define DIALOG_WEAPONS 3
And for the dialog & Cmd Use this :
Код:
CMD:build(playerid)
{
      if(!IsPlayerInRangeOfPoint(playerid, 1.0, 2795.5701,2793.7720,17.6763)) return SendClientMessage(playerid, -1, "You Cannot Use This CMD While You Are Not In Range !");
      new str[2500];
      format(str, sizeof str, "Knife\nBaseball Bat\nAk-47\nMP5\nGrenade\nSniper");      
      ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", str, "Build", "cancel");
      return 1;
}
not worked
Reply


Messages In This Thread
Why dialog is not working? - by akib - 27.05.2017, 09:03
Re: Why dialog is not working? - by Wary - 27.05.2017, 10:20
Re: Why dialog is not working? - by CodeStyle175 - 27.05.2017, 10:26
Re: Why dialog is not working? - by akib - 27.05.2017, 10:32
Re: Why dialog is not working? - by Deroxi - 27.05.2017, 10:39
Re: Why dialog is not working? - by akib - 27.05.2017, 11:42
Re: Why dialog is not working? - by adri[4]Life - 27.05.2017, 12:22
Re: Why dialog is not working? - by akib - 27.05.2017, 22:17
Re: Why dialog is not working? - by iLearner - 27.05.2017, 22:28
Re: Why dialog is not working? - by akib - 28.05.2017, 04:37

Forum Jump:


Users browsing this thread: 1 Guest(s)