|
L 12/20/2008 - 14:20:41: Invalid player id 293
L 12/20/2008 - 14:20:41: [AMXX] Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 12/20/2008 - 14:20:45: Invalid player id 293
L 12/20/2008 - 14:20:45: [AMXX] Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:45: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 12/20/2008 - 14:20:45: Invalid player id 292
L 12/20/2008 - 14:20:45: [AMXX] Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:45: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
我知道是提示ID超出范围...可是这个插件很多人都用的吧?
难道都出错?
我在插件后面加上debug这个插件就失效了--!
源代码new p_amx_bullet_damage
public damage_msg(vIndex)
{
if ( get_pcvar_float(p_amx_bullet_damage) ) {
new aIndex = get_user_attacker(vIndex)
new damage = read_data(2)
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, 7)
show_hudmessage(aIndex,"%i", damage)
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Bullet Damage","1.0","datang")
register_event("Damage", "damage_msg", "b", "2!0", "3=0", "4!0")
p_amx_bullet_damage = register_cvar("amx_bullet_damage","0")
return PLUGIN_CONTINUE
} |
|