Правильно ли подсчитан размер массивов
Здравствуйте.
1) правильно ли здесь все сделано?
мб попроще можно?
new fmt_str[23 + ( -2 + 11 ) + 1];
new fmt_strland[25 + ( -2 + 11 ) + 1];
format(fmt_str
, sizeof(fmt_str
),"Баланс бизнеса: %i вирт", BizzInfo
[i
][bTill
]); format(fmt_strland
,sizeof(fmt_strland
),"Баланс 'LandTax': %i вирт",BizzInfo
[i
][bLandTax
]); ShowPlayerDialog(playerid
, 1846, 2, "Бизнес", "[0] Продать бизнес\n[1] Пополнить счет\n[2] Снять деньги\n[3] Баланс\n[4] Цена за товар\n[5] Цена за вход\n[6] Информация", "Выбрать", "Отмена");
2) Подскажите как в данном случае подсчитывать ячейки
stock GetFracName(i)
{
new ttext[32];
switch(i)
{
case 1: ttext = "Police LS";
case 2: ttext = "FBI";
case 3: ttext = "Army SF";
case 4: ttext = "Ìåäèêè";
case 5: ttext = "La Cosa Nostra";
case 6: ttext = "Yakuza";
case 7: ttext = "Ìýðèÿ";
case 8: ttext = "Casino";
case 9: ttext = "News SF";
case 10: ttext = "Police SF";
case 11: ttext = "Àâòîøêîëà";
case 12: ttext = "Ballas Gang";
case 13: ttext = "Vagos Gang";
case 14: ttext = "Ðóññêàÿ Ìàôèÿ";
case 15: ttext = "Grove Street";
case 16: ttext = "News LS";
case 17: ttext = "Aztecas Gang";
case 18: ttext = "Rifa Gang";
case 19: ttext = "Army LV";
case 20: ttext = "News LV";
case 21: ttext = "Police LV";
case 24: ttext = "Hell's Angels MC";
case 26: ttext = "Warlocks MC";
case 29: ttext = "Pagans MC";
case 33: ttext = "Medics LV";
case 22: ttext = "Medics LS";
default: ttext = "-";
}
return ttext;
}