PDA

View Full Version : Error on shaman


infernal2
05-31-2006, 08:00
Whell i hawe this error on shaman...dont know what else i can say if i write debug shaman dostn show in the menu wher u can chose heros ...
Invalid player id 0
[AMXX] Run time error 10 <plugin "sh_shaman.amxx"> - de bug not enabled
[AMXX] To enable debug mode, add "debug" after the plugin name in the plugins.ini <whitout quotes>

D o o m
06-01-2006, 03:19
So in the plugins.ini stands sh_shaman.amxx debug?
If yes, it will work and if you write "debug", it's your own fault :P

I don't know another explanation (is this word right? *lol*).

infernal2
06-01-2006, 03:49
w8 so i didnt get it
when i hawe
sh_shaman.amxx debug it dosnt work compleatly and if
sh_shaman.amxx it givs me thos lines

Emp`
06-01-2006, 09:06
its an error in the hero, ill fix it when i get back from school

infernal2
06-01-2006, 09:45
ok ye thx cant w8 =]

Emp`
06-01-2006, 18:56
change line 145 if ( is_user_alive(id) && id != attacker && gIsZombie[id] ) {to if ( is_user_alive(id) && is_user_alive(attacker) && id != attacker && gIsZombie[id] ) { that should fix it, tell me if it does

infernal2
06-02-2006, 08:09
thx emp evrything is a ok :D

infernal2
06-04-2006, 07:08
srry emp about that a ok think cuz whell it was ok but it started 2 show the same thing...

Emp`
06-04-2006, 12:16
enable debug and whats it print?

infernal2
06-10-2006, 13:32
so srry emp about the late replay

Invalid player id 0
[AMXX] Displaying debug trace <plugin "sh_shaman.amxx">

[AMXX] Run time error 10: native error <native "get_user_attacker">
[AMXX] [0] sh_shaman.sma::Shaman_damage <line 143>

somthing like that :D

Emp`
06-11-2006, 15:20
change 139-158 to public Shaman_damage(id)
{
if (!shModActive() || !is_user_alive(id)) return PLUGIN_CONTINUE

new weapon, bodypart, attacker = get_user_attacker(id,weapon,bodypart)

if ( is_user_alive(attacker) && id != attacker && gIsZombie[id] ) {
if ( bodypart==HIT_HEAD && weapon!=CSW_HEGRENADE ) {
shExtraDamage( id, attacker, 500, "Headshot" )
client_print(id, print_center, "Your undead head has been blown off.")
client_print(attacker, print_chat, "[SH] You killed an undead with a headshot.")
}
if ( weapon==CSW_HEGRENADE ) {
shExtraDamage( id, attacker, 500, "Blown Up" )
client_print(id, print_center, "Your undead body has been teared apart by a grenade.")
client_print(attacker, print_chat, "[SH] You killed an undead with a grenade.")
}
}
return PLUGIN_CONTINUE
} tell me your results again...