Hello,
I'm trying to figure out this problem. When I enter this code:
Code:
function pickup3 ()
{
if (event_type == event_impact)
{
if (my.pickup_type == 3)
{
if(int(you.health)<100)
{
you.health = min(you.health +my.units, 100);
ent_remove (me);
}
}
}
}
[/code}
I get an error message that says that
Code:
you.health = min(you.health +my.units, 100);
causes a rise overrun issue in the code.
Why is this? What should I do to prevent this issue? I got the issue once before but I cannot reember how I fixed it. thanks in advance for any help.