25.01.2015, 21:03
Try this:
pawn Код:
case MainPropertyDialog:
{
if(response)
{
new String[216];
if(listitem == 0)
{
format(String, sizeof(String), "{ffffff}Ar tikrai norite parduoti savo versla uћ %s Ђ?", FormatNumber(PropertyInfo[PropertyID[playerid]][pPrice] / 2));
ShowPlayerDialog(playerid, PropertySellDialog, DIALOG_STYLE_MSGBOX, "Parduoti versla serveriui", String, "Taip", "Ne");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, PropertySellToPlayerDialog, DIALOG_STYLE_INPUT, "Parduoti versla kitam ћmogui", "{ffffff}Noredami parduoti versla ћmogui, iraљykite jo varda ir norima pinigu suma i laukeli:\n\nPavyzdys: Twinkle_Toes 50000", "Siulyti", "Atgal");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, PropertyGiveToPlayerDialog, DIALOG_STYLE_INPUT, "Atiduoti versla kitam ћmogui", "{ffffff}Noredami atiduoti versla ћmogui, iraљykite jo varda i laukeli:\n\nPavyzdys: Twinkle_Toes", "Atiduoti", "Atgal");
}
if(listitem == 3)
{
format(String, sizeof(String), "{ffffff}Љiuo metu verslo pelne yra %s Ђ.\n1. Paimti pinigus iљ pelno\n2. Padeti pinigus i pelna", FormatNumber(PropertyInfo[PropertyID[playerid]][pProfit]));
ShowPlayerDialog(playerid, PropertyProfitControlDialog, DIALOG_STYLE_LIST, "Pelno valdymas", String, "Pasirinkti", "Atgal");
}
}
}
}