Hello, I found that error when I compile the plugin:
<2> error 075: input line too long <after substitutions>
> Image:
Can someone help me to fix it?
> Plugin:
PHP Code:
#include <amxmodx>
#include <fun>
new health_add
new health_hs_add
new nKiller
new nKiller_hp
new nHp_add
public plugin_init()
{
register_plugin("Vampire", "1.0c", "Shalfey")
health_add = register_cvar("amx_vampire_hp", "10")
health_hs_add = register_cvar("amx_vampire_hs", "15")
register_event("DeathMsg", "hook_death", "a", "1>0")
}
public hook_death()
{
nKiller = read_data(1)
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
nHp_add = get_pcvar_num (health_hs_add)
}
else nHp_add = get_pcvar_num (health_add)
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
set_user_health(nKiller, nKiller_hp)
set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
show_hudmessage(nKiller, "Bonus: +%d HP", nHp_add)
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
write_short(1<<10)
write_short(1<<10)
write_short(0x0000)
write_byte(0)
write_byte(0)
write_byte(200)
write_byte(75)
message_end()
}