Well for one, you don't have to precache the sprite, the sprites that you can make show-up on the hud are already defined, and precached.
They have names there defined under, like "dmg_gas, dmg_shock,etc etc".
You have to use thoes names.
So change:
Code:
public show(id)
{
message_begin(MSG_ONE,iconstatus,{0,0,0},id)
write_byte(1)
write_string(spr)
write_byte(0)
write_byte(255)
write_byte(0)
message_end()
}
To something like:
Code:
public show(id)
{
message_begin(MSG_ONE,iconstatus,{0,0,0},id)
write_byte(1)
write_string("dmg_bio")
write_byte(0)
write_byte(255)
write_byte(0)
message_end()
}
__________________