Can someone see if they can fix this and then tell what was wrong?
Thank you.
(i guess you can tell by looking at the title or the code can tell what its supposed to do but i say it anyway

)
Supposed to: Check when health is changed and then see if it got higher than 100 if it did its supposed to set it back to 100
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init() {
register_plugin("Prevent health bug", "0.1", "Micke1101")
register_event("Health", "health_change", "b")
}
public health_change(id)
{
new iHealth = get_user_health(id);
if(iHealth > 100){
set_user_health(id, 100)
}
}