Shop by w0w

Сообщения
3
Реакции
0
Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
Ошибка
[AMXX] Plugin ("shop_categories_items.amxx") is setting itself as failed.
[AMXX] Plugin says: File "addons/amxmodx/configs/shop_categories_items.ini" is incorrect
[AMXX] Run time error 1 (plugin "shop_categories_items.amxx") - forced exit
ОС
Linux
Amx Mod X
1.9.0.5263
Билд
3.7.0.694
ReGamedll
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.694-dev
Build date: 15:16:45 Mar 22 2020 (2171)
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Список метамодулей
[ 1] Reunion       RUN   -    reunion_mm_i386.so        v0.1.0.92        ini  Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 5] Revoice RUN - revoice_mm_i386.so v0.1.0.31 ini Start Never
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[ 8] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl4 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl4 ANY Never
10 plugins, 10 running
Список плагинов
[  1] Admin Base              1.9.0.5263  AMXX Dev Team     admin.amxx       running
[ 2] Admin Commands 1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5263 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5263 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5263 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5263 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5263 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5263 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5263 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5263 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5263 AMXX Dev Team statsx.amxx running
[ 22] Shop API 8.4.1 gamingEx shop_api.amxx running
[ 23] Shop: Categories List 1.0 w0w shop_categories running
[ 24] Shop: Custom Price 0.4 w0w shop_custom_pri running
[ 25] Shop: Categories Items 1.0 w0w shop_categories error
[ 26] Shop: Addon 1.3 w0w shop_addon.amxx running
[ 27] Shop: Reflection Damag 1.0.1 w0w shop_reflection running
Автор плагина
w0w
Версия плагина
1.0
Исходный код
#include <amxmodx>
#include <amxmisc>
#include <shopapi>

#pragma semicolon 1

new const PLUGIN_VERSION[] = "1.0";

/****************************************************************************************
****************************************************************************************/

// Configuration file name
new const g_szFileName[] = "shop_categories_items.ini";

/****************************************************************************************
****************************************************************************************/

enum _:STRUCTURE
{
STRKEY_ITEM[SHOP_MAX_ITEM_NAME_LENGTH],
STRKEY_CATEGORY[SHOP_MAX_KEY_LENGTH]
};

new g_szData[256][STRUCTURE];

public plugin_init()
{
register_plugin("Shop: Categories Items", PLUGIN_VERSION, "w0w");

new szPath[PLATFORM_MAX_PATH];
get_configsdir(szPath, charsmax(szPath));
format(szPath, charsmax(szPath), "%s/%s", szPath, g_szFileName);

new iFile = fopen(szPath, "rt");

if(!iFile)
set_fail_state("File ^"%s^" is not found", szPath);

new szBuffer[256], i;

while(!feof(iFile))
{
fgets(iFile, szBuffer, charsmax(szBuffer));

if(!szBuffer[0] || szBuffer[0] == ';')
continue;

if(parse(
szBuffer,
g_szData[i][STRKEY_ITEM], charsmax(g_szData[][STRKEY_ITEM]),
g_szData[i][STRKEY_CATEGORY], charsmax(g_szData[][STRKEY_CATEGORY])
)
)
{
new szStrKeyItem[SHOP_MAX_KEY_LENGTH];
copy(szStrKeyItem, charsmax(szStrKeyItem), g_szData[i][STRKEY_ITEM]);
new ShopItem:iItem = ShopFindItemByKey(szStrKeyItem);

if(iItem == INVALID_SHOPITEM)
continue;

new szStrKeyCategory[SHOP_MAX_KEY_LENGTH];
copy(szStrKeyCategory, charsmax(szStrKeyCategory), g_szData[i][STRKEY_CATEGORY]);
new ShopCategory:iCategory = ShopFindCategoryByKey(szStrKeyCategory);

if(iCategory == INVALID_CATEGORY)
continue;

ShopAttachToCategory(iCategory, iItem);
i++;
}
}
fclose(iFile);

if(!i)
set_fail_state("File ^"%s^" is incorrect", szPath);
}
Не понимаю что не так
скрин с shop_categories_items.ini Снимок экрана (455).png
скрин с shop_categories_list.ini Снимок экрана (456).png
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу