i have this eerror in logs, pls anyone help:
L 08/10/2013 - 04:59

7: [FUN] Invalid player 9
L 08/10/2013 - 04:59

7: [AMXX] Displaying debug trace (plugin "zp50_gameplay_fixes.amxx")
L 08/10/2013 - 04:59

7: [AMXX] Run time error 10: native error (native "set_user_health")
L 08/10/2013 - 04:59

7: [AMXX] [0] zp50_gameplay_fixes.sma::message_health (line 44

L 08/10/2013 - 09:47:10: Start of error session.
PHP Code:
// Fix for the HL engine bug when HP is multiples of 256
public message_health(msg_id, msg_dest, msg_entity)
{
// Get player's health
new health = get_msg_arg_int(1)
// Don't bother
if (health < 256) return;
// Check if we need to fix it
if (health % 256 == 0)
set_user_health(msg_entity, get_user_health(msg_entity) + 1)
// HUD can only show as much as 255 hp
set_msg_arg_int(1, get_msg_argtype(1), 255)
}
i saw on forum to add is_user_alive to prevent bug can i do this
PHP Code:
// Fix for the HL engine bug when HP is multiples of 256
public message_health(id, msg_id, msg_dest, msg_entity)
{
// Get player's health
new health = get_msg_arg_int(1)
// Don't bother
if (health < 256) return;
// Check if we need to fix it
if (is_user_alive(id))
if (health % 256 == 0)
set_user_health(msg_entity, get_user_health(msg_entity) + 1)
// HUD can only show as much as 255 hp
set_msg_arg_int(1, get_msg_argtype(1), 255)
}
__________________