14.05.2012, 13:19
Try this first. if this doesnt work.:
Then try this code
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response == 1)
{
switch(dialogid)
{
case 1446:
{
switch(listitem)
{
case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
case 1447:
{
new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
}
case 1448:
{
new skins[] = {274,275,276};
}
case 1449:
{
new skins[] = {277,278,279};
}
}
}
}
}
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response == 1)
{
switch(dialogid)
{
case 1446:
{
switch(listitem)
{
case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
}
}
}
}
return 1;
}