15.08.2018, 22:20
I don't understand why this dialog shows only the last line, what's wrong?
It shows just
where it should show from "Drug Dealer Job Commands" to the text i quoted.
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;
}
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"); |