[ROZWIĄZANE] 4 armory na rundę (4 razy moż...
Najlepsza odpowiedź Drago36 06.03.2014 20:51
Zapomniałem o funkcji "event_round_start", a była zarejestrowana i dlatego te błędy.
Niżej już poprawione.
Spoiler
Przejdź do postu
Qes
05.03.2014
Witam,
Mógłby mi ktoś przerobić ten plugin tak by można było ten "item" kupić tylko 4 razy na rundę?
/*================================================================================ ------------------------------------------------- -*- [ZP] Extra Item: Anti-Infection Armor 1.0 -*- ------------------------------------------------- ~~~~~~~~~~~~~~~ - Description - ~~~~~~~~~~~~~~~ This item gives humans some armor that offers protection against zombie injuries. ================================================================================*/ #include <amxmodx> #include <fakemeta> #include <zombieplague> /*================================================================================ [Plugin Customization] =================================================================================*/ new const g_item_name[] = { "Anti-Infection Armor" } const g_item_cost = 10 new const g_sound_buyarmor[] = { "items/tr_kevlar.wav" } const g_armor_amount = 100 const g_armor_limit = 400 /*============================================================================*/ // Item IDs new g_itemid_humanarmor public plugin_precache() { precache_sound(g_sound_buyarmor) } public plugin_init() { register_plugin("[ZP] Extra: Anti-Infection Armor", "1.0", "MeRcyLeZZ") g_itemid_humanarmor = zp_register_extra_item(g_item_name, g_item_cost, ZP_TEAM_HUMAN) } // Human buys our upgrade, give him some armor public zp_extra_item_selected(player, itemid) { if (itemid == g_itemid_humanarmor) { set_pev(player, pev_armorvalue, float(min(pev(player, pev_armorvalue)+g_armor_amount, g_armor_limit))) engfunc(EngFunc_EmitSound, player, CHAN_BODY, g_sound_buyarmor, 1.0, ATTN_NORM, 0, PITCH_NORM) } }
Qes
06.03.2014
L 03/06/2014 - 17:48:05: Start of error session. L 03/06/2014 - 17:48:05: Info (map "zm_toxic_ice_attack") (file "addons/amxmodx/logs/error_20140306.log") L 03/06/2014 - 17:48:05: Function "event_round_start" was not found L 03/06/2014 - 17:48:05: [AMXX] Displaying debug trace (plugin "zp_extra_human_armor.amxx") L 03/06/2014 - 17:48:05: [AMXX] Run time error 19: function not found L 03/06/2014 - 17:48:05: [AMXX] [0] zp_extra_human_armor.sma::plugin_init (line 46) L 03/06/2014 - 18:29:53: Start of error session. L 03/06/2014 - 18:29:53: Info (map "zm_sawmill_gpex") (file "addons/amxmodx/logs/error_20140306.log") L 03/06/2014 - 18:29:53: Function "event_round_start" was not found L 03/06/2014 - 18:29:53: [AMXX] Displaying debug trace (plugin "zp_extra_human_armor.amxx") L 03/06/2014 - 18:29:53: [AMXX] Run time error 19: function not found L 03/06/2014 - 18:29:53: [AMXX] [0] zp_extra_human_armor.sma::plugin_init (line 46) L 03/06/2014 - 19:10:55: Start of error session. L 03/06/2014 - 19:10:55: Info (map "zm_nuke2012") (file "addons/amxmodx/logs/error_20140306.log") L 03/06/2014 - 19:10:55: Function "event_round_start" was not found L 03/06/2014 - 19:10:55: [AMXX] Displaying debug trace (plugin "zp_extra_human_armor.amxx") L 03/06/2014 - 19:10:55: [AMXX] Run time error 19: function not found L 03/06/2014 - 19:10:55: [AMXX] [0] zp_extra_human_armor.sma::plugin_init (line 46) L 03/06/2014 - 19:34:41: Start of error session. L 03/06/2014 - 19:34:41: Info (map "zm_hs_horror") (file "addons/amxmodx/logs/error_20140306.log") L 03/06/2014 - 19:34:41: Function "event_round_start" was not found L 03/06/2014 - 19:34:41: [AMXX] Displaying debug trace (plugin "zp_extra_human_armor.amxx") L 03/06/2014 - 19:34:41: [AMXX] Run time error 19: function not found L 03/06/2014 - 19:34:41: [AMXX] [0] zp_extra_human_armor.sma::plugin_init (line 46)
Takie errory teraz mam.
Najlepsza odpowiedź
Drago36
06.03.2014
Zapomniałem o funkcji "event_round_start", a była zarejestrowana i dlatego te błędy.
Niżej już poprawione.
Spoiler