oleg_nelasy
Участник
- Сообщения
- 664
- Реакции
- 46
В плагине таким образом формируются пункты меню. Хочу вывести все пункты меню в файл перевода. Для теста создал чар и положил в него текс при компиляции получаю ошибку.
prophunt/shop_items.sp(8) : error 047: array sizes do not match, or destination array is too small
это строка где я пытаюсь вывести текс из буфера.
prophunt/shop_items.sp(8) : error 047: array sizes do not match, or destination array is too small
это строка где я пытаюсь вывести текс из буфера.
C-подобный:
void RegisterItems()
{
char sBuffer[256];
Format(sBuffer, sizeof(sBuffer), "test");
RegisterShopItem("Heal", CS_TEAM_T, g_cvShopHiderHealPrice.IntValue, g_cvShopHiderHealSort.IntValue, g_cvShopHiderHealUnlockTime.IntValue, false);
RegisterShopItem("Change Model (Random)", CS_TEAM_T, g_cvShopHiderMorphPrice.IntValue, g_cvShopHiderMorphSort.IntValue, g_cvShopHiderMorphUnlockTime.IntValue, false);
RegisterShopItem(sBuffer, CS_TEAM_T, g_cvShopHiderAirFreezePrice.IntValue, g_cvShopHiderAirFreezeSort.IntValue, g_cvShopHiderAirFreezeUnlockTime.IntValue, false);
RegisterShopItem("Speed Upgrade", CS_TEAM_T, g_cvShopHiderSpeedPrice.IntValue, g_cvShopHiderSpeedSort.IntValue, g_cvShopHiderSpeedUnlockTime.IntValue, false);
RegisterShopItem("Low Gravity Upgrade", CS_TEAM_T, g_cvShopHiderGravityPrice.IntValue, g_cvShopHiderGravitySort.IntValue, g_cvShopHiderGravityUnlockTime.IntValue, false);
RegisterShopItem("Healthshot", CS_TEAM_CT, g_cvShopSeekerHealthshotPrice.IntValue, g_cvShopSeekerHealthshotSort.IntValue, g_cvShopSeekerHealthshotUnlockTime.IntValue, false);
RegisterShopItem("Grenade", CS_TEAM_CT, g_cvShopSeekerGrenadePrice.IntValue, g_cvShopSeekerGrenadeSort.IntValue, g_cvShopSeekerGrenadeUnlockTime.IntValue, false);
RegisterShopItem("FiveSeven", CS_TEAM_CT, g_cvShopSeekerFiveSevenPrice.IntValue, g_cvShopSeekerFiveSevenSort.IntValue, g_cvShopSeekerFiveSevenUnlockTime.IntValue, false);
RegisterShopItem("XM1014", CS_TEAM_CT, g_cvShopSeekerXM1014Price.IntValue, g_cvShopSeekerXM1014Sort.IntValue, g_cvShopSeekerXM1014UnlockTime.IntValue, false);
RegisterShopItem("MP9", CS_TEAM_CT, g_cvShopSeekerMP9Price.IntValue, g_cvShopSeekerMP9Sort.IntValue, g_cvShopSeekerMP9UnlockTime.IntValue, false);
RegisterShopItem("M4A1", CS_TEAM_CT, g_cvShopSeekerM4A1Price.IntValue, g_cvShopSeekerM4A1Sort.IntValue, g_cvShopSeekerM4A1UnlockTime.IntValue, false);
RegisterShopItem("AWP", CS_TEAM_CT, g_cvShopSeekerAWPPrice.IntValue, g_cvShopSeekerAWPSort.IntValue, g_cvShopSeekerAWPUnlockTime.IntValue, false);
}