ID:150875
 
When i kill an npc i want the npc to dissaper. Well with this code it does and gives an error message after it dies. Could anyone help me to get rid of this message? Here's the code:

if(src.gHP <= 0)
usr << "\red [src] is dead!"
usr.Kills += 1
del(src)


Her's the error i get while playing the game, not compiling it:

BYOND BUG: bad ref (3:1) in DecRefCount

Thanks a lot!
its that old bug again, hmmmm, what happens before all this?
In response to FIREking
On 7/13/01 1:15 am FIREking wrote:
its that old bug again, hmmmm, what happens before all this?

Well, everything works. I attack the npc, after the npc's HP is depleted he dies. But this message appears and gameplay goes on as normal. Strange, huh? Do you know anyway to get rid of it?
In response to SSTrunks7
its an old bug we had a little while back
prolly wont get rid of it,
maybe if you defined del() proc by overwriting they one they already have may be the cause

ask in bug report, ask tom, or something
its not able to be rid of i dont think, unless byond updates
That's a BYOND Bug (hence the designation) and not something you can fix. I would post a note to the bug forum so Dan and Tom can look into it.

-James


On 7/13/01 12:18 am SSTrunks7 wrote:
When i kill an npc i want the npc to dissaper. Well with this code it does and gives an error message after it dies. Could anyone help me to get rid of this message? Here's the code:

if(src.gHP <= 0)
usr << "\red [src] is dead!"
usr.Kills += 1
del(src)


Her's the error i get while playing the game, not compiling it:

BYOND BUG: bad ref (3:1) in DecRefCount

Thanks a lot!