[HELP] Dialog !
#1

Why the dialog not have efect? When I enter the pickup nothing happens....

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
     if(pickupid == job1)
     {
        ShowPlayerDialog(playerid, 9292, DIALOG_STYLE_MSGBOX, "JOB Detective", "Ai ales sa devii detectiv, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job2)
     {
        ShowPlayerDialog(playerid, 9494, DIALOG_STYLE_MSGBOX, "JOB Lawyer", "Ai ales sa devii avocat, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job3)
     {
         ShowPlayerDialog(playerid, 9595, DIALOG_STYLE_MSGBOX, "JOB Whore", "Ai ales sa devii tarfa, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
         return 1;
     }
     if(pickupid == job4)
     {
        ShowPlayerDialog(playerid, 9696, DIALOG_STYLE_MSGBOX, "JOB Drugs Dealer", "Ai ales sa devii traficant de droguri, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
     }
     if(pickupid == job5)
     {
        ShowPlayerDialog(playerid, 9393, DIALOG_STYLE_MSGBOX, "JOB Car Jacker", "Ai ales sa devii Car Jacker, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job6)
     {
        ShowPlayerDialog(playerid, 130130, DIALOG_STYLE_MSGBOX, "JOB Paper Boy", "Ai ales sa devii vanzator de ziare, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job7)
     {
         ShowPlayerDialog(playerid, 9797, DIALOG_STYLE_MSGBOX, "JOB Car Mechanic", "Ai ales sa devii mecanic auto, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
         return 1;
     }
     if(pickupid == job8)
     {
         ShowPlayerDialog(playerid, 9898, DIALOG_STYLE_MSGBOX, "JOB Bodyguard", "Ai ales sa devii bodyguard, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
         return 1;
     }
     if(pickupid == job9)
     {
            ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "JOB Arms Dealer", "Ai ales sa devii traficand de arme, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
            return 1;
     }
     if(pickupid == job10)
     {
          ShowPlayerDialog(playerid, 100100, DIALOG_STYLE_MSGBOX, "JOB Car Dealer", "Ai ales sa devii vanzator auto, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
          return 1;
     }
     if(pickupid == job11)
     {
        ShowPlayerDialog(playerid, 110110, DIALOG_STYLE_MSGBOX, "JOB Boxer", "Ai ales sa devii boxer, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job12)
     {
        ShowPlayerDialog(playerid, 120120, DIALOG_STYLE_MSGBOX, "JOB Bus Driver", "Ai ales sa devii sofer de autobuz, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
        return 1;
     }
     if(pickupid == job13)
     {
            ShowPlayerDialog(playerid, 140140, DIALOG_STYLE_MSGBOX, "JOB Trucker", "Ai ales sa devii camionagiu, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
            return 1;
     }
     if(pickupid == job14)
     {
            ShowPlayerDialog(playerid, 150150, DIALOG_STYLE_MSGBOX, "JOB TOYS MAN", "Ai ales sa devii furnizor de jucarii, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
            return 1;
     }
     if(pickupid == job15)
     {
            ShowPlayerDialog(playerid, 160160, DIALOG_STYLE_MSGBOX, "JOB MAIL MAN", "Ai ales sa devii postas, esti obligat sa stai 5 ore cu acest job\nDaca esti de acord apasa 'Accept'.", "Accept", "Exit");
            return 1;
     }
     return 1;
}
Reply
#2

The Dialog id so high
Reply
#3

You mean in 9292 to do a smaller number?
Reply
#4

Unless you have a total of 160160 dialogs there's no point making an ID that high.. 1,2,3 work just fine
Reply
#5

Still not working...
Reply
#6

Comment the ShowPlayerDialog line and replace it with a SendClientMessage just to make sure OnPlayerPickUpPickup is called and the pickupid is one of the job pickups. If that works, try using lower dialog IDs such as 200-600 and make sure OnDialogResponse returns 0.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)