Dialog
#1

I don't understand why this dialog shows only the last line, what's wrong?

pawn Code:
stock ShowJobCommands(playerid)
{
    new temp[500];
    switch (Player[playerid][Job])
    {
        case 0:
        {
            SendClientMessage(playerid,COLOR_RED,"* You don't have a job. Get one from City Hall.");
        }
        case 1:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Drug Dealer Job Commands\n");
            format(temp, sizeof(temp), ""ORANGE_RED"/plant "WHITE"- Plant marijuana, heroine or cocaine seeds and let your plant grow.\n");
            format(temp, sizeof(temp), ""WHITE"Once your plant is fully grown (you can see it by reading info label on the plant), you can "ORANGE_RED"/harvest "WHITE"it.\n");
            format(temp, sizeof(temp), ""WHITE"Once you have harvested your plant, go to a local drug selling point (located with the ""D"" icon on the map) and type "ORANGE_RED"/selldrugs.\n");
        }
        case 2:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Weapons Dealer Job Commands\n");
        }
        case 3:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Trucker Job Commands\n");
        }
        case 4:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Taxi Driver Job Commands\n");
        }
        case 5:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Bus Driver Job Commands\n");
        }
        case 6:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Mechanic Job Commands\n");
        }
        case 7:
        {
            format(temp, sizeof(temp), ""SAMP_BLUE"Pizza Boy Job Commands\n");
        }
    }
    ShowPlayerDialog(playerid, DIALOG_JOB_CMDS, DIALOG_STYLE_MSGBOX,""ORANGE_RED"Job Commands",temp,"Close","");
    return 1;
}
It shows just

Quote:

format(temp, sizeof(temp), ""WHITE"Once you have harvested your plant, go to a local drug selling point (located with the ""D"" icon on the map) and type "ORANGE_RED"/selldrugs.\n");

where it should show from "Drug Dealer Job Commands" to the text i quoted.
Reply


Messages In This Thread
Dialog - by KinderClans - 15.08.2018, 22:20
Re: Dialog - by ToiletDuck - 16.08.2018, 01:55
Re: Dialog - by Akeem - 16.08.2018, 02:25
Re: Dialog - by KinderClans - 16.08.2018, 10:24
Re: Dialog - by KinderClans - 16.08.2018, 11:00
Re: Dialog - by CodeStyle175 - 16.08.2018, 11:20
Re: Dialog - by KinderClans - 16.08.2018, 11:35
Re: Dialog - by KinderClans - 17.08.2018, 09:35
Re: Dialog - by KinderClans - 18.08.2018, 10:25
Re: Dialog - by Exhibit - 18.08.2018, 12:35

Forum Jump:


Users browsing this thread: 3 Guest(s)