bullet_damage为什么总出错?
L 12/20/2008 - 14:20:41: Invalid player id 293L 12/20/2008 - 14:20:41: Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:41: 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: Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:45: 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: Run time error 10 (plugin "bullet_damage.amxx") (native "show_hudmessage") - debug not enabled!
L 12/20/2008 - 14:20:45: 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
} 试试这个绝对没有问题 呵呵
thanks 刚用了下...谢谢刚才那位大哥提供的插件
有点不解...
我看到这个原代码最后的函数没有}结尾
以为错了
我加一个上去反倒出错?
不加才正确..编程新手.请大哥指点 ....你的头像.. - - 5# sakulekingz
这个是我很喜欢的一个ICON的png
那个...不是刻意冲突...哈哈,不好意思了
页:
[1]