few dialogs are not working.
#1

while dialogs such as login/purchase weapon etc works, few of em are not responding.

pawn Код:
#define DIALOG_REGISTER 50
#define DIALOG_LOGIN 51
#define DIALOG_SUCCESS_1 52
#define DIALOG_SUCCESS_2 53
#define DIALOG_TEAM 54
#define DIALOG_TEAM1 544
#define DIALOG_PICKUP 55
#define DIALOG_WEAPON 56
#define DIALOG_AMMU 57
#define DIALOG_AMMU1 58
#define DIALOG_AMMU2 59
#define DIALOG_AMMU3 60
#define DIALOG_AMMU4 61
#define DIALOG_AMMU5 62
#define DIALOG_MISION1 6333
#define DIALOG_MIS2 63444
#define DIALOG_MISS3 68555
#define DIALOG_CLASS 66
#define DIALOG_CLASS1 666
#define DIALOG_MISI4 66777
#define DIALOG_MISIO5 658878
#define DIALOG_RCON 93512

//mission stuff pickup
new mission1;
new mission2;
new mission3;
new mission4;
new mission5;

//under gamemodeinit
mission1 = CreatePickup(1239, 2,-344.3602,1543.2966,75.5625, -1);
    mission2 = CreatePickup(1239, 2,1074.9996,1024.0043,10.1505, -1);
    mission3 = CreatePickup(1239, 2,1489.5618,1232.1563,10.8203, -1);
    mission4 = CreatePickup(1239, 2,213.2987,1822.7225,6.4141, -1);
    mission5 = CreatePickup(1239, 2,413.9706,2536.8633,19.1484, -1);


//onplayerpickupickup
//it shows the dialog but only mission1 responds, rest are not working
//mission1
ShowPlayerDialog(playerid, DIALOG_MISION1 //works so far
//mission2
ShowPlayerDialog(playerid, DIALOG_MIS2
//mission3
ShowPlayerDialog(playerid, DIALOG_MISS3
//mission4
ShowPlayerDialog(playerid, DIALOG_MISI4
//mission5
ShowPlayerDialog(playerid, DIALOG_MISIO5,

//ondialogrespones
if(dialogid == DIALOG_MISION1)
       {
        //responses if i press yes or no (with message)

if(dialogid == DIALOG_MISI4)
            {//does not reponse
if ( !response ) return SendClientMessage(playerid,COLOR_WHITE,"You've cancled");
            if( response )
            {

if(dialogid == DIALOG_MISIO5)
            {//and so on.
Reply
#2

The max dialog id is 32767.
Reply
#3

you know
pawn Код:
#define DIALOG_RCON 93512
this dialog works anyways -_-
Reply
#4

Quote:
Originally Posted by verlaj
Посмотреть сообщение
you know
pawn Код:
#define DIALOG_RCON 93512
this dialog works anyways -_-
Just try to change them to lower IDs, and do you mean 'are not responding' as they dont show up? or when you click a listitem it doesn't show any action?
Reply
#5

no action when i click on them, they are ofc showing up and i tryed to change the value but nothing happend.\

take a look at This
Reply
#6

Do you return 0 at the end of OnDialogResponse in any script? If not, you should so it will allow to search for the dialogid in other scripts if it's not found in the current one.
Reply
#7

Quote:
Originally Posted by verlaj
Посмотреть сообщение
you know
pawn Код:
#define DIALOG_RCON 93512
this dialog works anyways -_-
Quote:

no action when i click on them, they are ofc showing up and i tryed to change the value but nothing happend.\

take a look at This

because he take an other id to depend of max value,
are you try to make define a lower value,
Reply
#8

there is a return 0; at the end
Reply
#9

change it to return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)