Mam problem z tym pluginem wywala mi co jakis czas blędy w logach, może zdoła to ktoś naprawić?
Pozdrawiam
Logi:
Info (map "de_kabul") (file "addons/amxmodx/logs/error_20110812.log") L 08/12/2011 - 23:13:49: [CSTRIKE] Invalid weapon id 0 L 08/12/2011 - 23:13:49: [AMXX] Displaying debug trace (plugin "ne_unlimitedammo.amxx") L 08/12/2011 - 23:13:49: [AMXX] Run time error 10: native error (native "cs_get_user_bpammo") L 08/12/2011 - 23:13:49: [AMXX] [0] ne_unlimitedammo.sma::event_curweapon (line 60) L 08/12/2011 - 23:13:49: Invalid weapon id 0
to jest 60 linijka:
if(cs_get_user_bpammo(id, weaponID)!=CSW_MAXAMMO[weaponID])
#define NE_UA_VERSION "1.0.1"
/*
New-Era_UnlimitedAmmo by New-Era Scripting Team members:
Alican Çubukçuođlu (AKA AlicanC and Shaman)
You can reach us from Steam Community group "#n.E Scripting Team"
*/
/*---------------+
| Includes |
+---------------*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
/*--------------+
| Globals |
+--------------*/
new CSW_MAXAMMO[33]= {-2, 52, 0, 90, 1, 32, 1, 100, 90, 1, 120, 100, 100, 90, 90, 90, 100, 120, 30, 120, 200, 32, 90, 120, 90, 2, 35, 90, 90, 0, 100, -1, -1}
new cvar_enable
/*----------------------------+
| Plugin Initialization |
+----------------------------*/
public plugin_init()
{
/*--------------------------+
| Plugin Registration |
+--------------------------*/
register_plugin("New-Era_UnlimitedAmmo", NE_UA_VERSION, "New-Era Scripting Team")
register_cvar("ne_uammo_version", NE_UA_VERSION, FCVAR_SPONLY)
/*------------+
| CVars |
+------------*/
cvar_enable= register_cvar("ne_uammo_enable", "1")
/*-------------+
| Events |
+-------------*/
register_event("CurWeapon", "event_curweapon", "be", "1=1")
/*---------------+
| Commands |
+---------------*/
}
public event_curweapon(id)
{
//Check if the plugin is enabled and player is alive
if(!get_pcvar_num(cvar_enable) || !is_user_alive(id))
return PLUGIN_CONTINUE;
//Get and check weapon ID
new weaponID= read_data(2)
if(weaponID==CSW_C4 || weaponID==CSW_KNIFE || weaponID==CSW_HEGRENADE || weaponID==CSW_SMOKEGRENADE || weaponID==CSW_FLASHBANG)
return PLUGIN_CONTINUE;
if(cs_get_user_bpammo(id, weaponID)!=CSW_MAXAMMO[weaponID])
cs_set_user_bpammo(id, weaponID, CSW_MAXAMMO[weaponID])
return PLUGIN_CONTINUE;
}Dodano 13 sierpień 2011 - 10:42:
pomoze ktos dam k**wa ++++
Dodano 13 sierpień 2011 - 13:28:
pomoze ktos dam k**wa +++!
Dodano 13 sierpień 2011 - 14:53:
pomoze ktos?
Użytkownik Karaj edytował ten post 13.08.2011 08:36


Dodatki SourceMod



Temat jest zamknięty






