Witam, Mam problem z pluginem kompilować się kompiluje po wrzuceniu na serwer nie działa. Posiadam logi
L 11/11/2018 - 13:21:37: Start of error session. L 11/11/2018 - 13:21:37: Info (map "zm_dusthorror") (file "addons/amxmodx/logs/error_20181111.log") L 11/11/2018 - 13:21:37: String formatted incorrectly - parameter 6 (total 5) L 11/11/2018 - 13:21:37: [AMXX] Displaying debug trace (plugin "gunxpmod_shop.amxx") L 11/11/2018 - 13:21:37: [AMXX] Run time error 25: parameter error L 11/11/2018 - 13:21:37: [AMXX] [0] gunxpmod_shop.sma::display_item_upgrades (line 108) L 11/11/2018 - 13:21:37: [AMXX] [1] gunxpmod_shop.sma::item_upgrades (line 85)
Tutaj fukncja:
public item_upgrades(id) { display_item_upgrades(id, g_menuPosition[id] = 0); return PLUGIN_HANDLED; } public display_item_upgrades(id, pos) { if(!is_user_alive(id)) return; static menuBody[510], len; len = 0 if(pos < 0) { return; } new start = pos * 8 if(start >= g_numberofitems) { start = pos = g_menuPosition[id] } len += formatex(menuBody[len], sizeof menuBody - 1 - len, "%L", LANG_SERVER, "TITLE_MENU_SHOP") new end = start + 8 new keys = MENU_KEY_0 if(end > g_numberofitems) { end = g_numberofitems } new b = 0 for(new a = start; a < end; ++a) { new i = a + 1 new money new opcja #if defined SHOP_OPTION_MONETY money = get_user_bm(id) opcja = 1 #endif #if defined ZOMBIE_PLAGUE && defined SHOP_OPTION_AP money = zp_get_user_ammo_packs(id) opcja = 2 #endif #if defined SHOP_OPTION_XP money = get_user_xp(id) opcja = 0 #endif if( money < g_itemcost[i] ) { if( g_PlayerItem[id][i] ) { len += formatex(menuBody[len], sizeof menuBody - 1 - len,"%L", id, "INACTIVE_MENU_SHOP_BOUGHT", ++b, g_itemname[i], g_itemcost[i]) } else { len += formatex(menuBody[len], sizeof menuBody - 1 - len,"%L", id, "INACTIVE_MENU_SHOP", ++b, g_itemname[i], NAZWA_PAY[opcja],g_itemcost[i]); } } else if( g_PlayerItem[id][i] ) { len += formatex(menuBody[len], sizeof menuBody - 1 - len,"%L", id, "INACTIVE_MENU_SHOP_BOUGHT", ++b, g_itemname[i], g_itemcost[i]) } else { keys |= (1<<b) len += formatex(menuBody[len], sizeof menuBody - 1 - len,"%L", id, "ACTIVE_MENU_SHOP", ++b, g_itemname[i], NAZWA_PAY[opcja], g_itemcost[i]) } } if(end != g_numberofitems) { len += formatex(menuBody[len], sizeof menuBody - 1 - len, "^n\r9. \w%L\r^n0. \w%L", id, "NEXT_MENU", id, pos ? "BACK_MENU" : "EXIT_MENU") keys |= MENU_KEY_9 } else { len += formatex(menuBody[len], sizeof menuBody - 1 - len, "^n\r0. \w%L", id, pos ? "BACK_MENU" : "EXIT_MENU") } show_menu(id, keys, menuBody, -1, "Unlocks Shop") }