code prob

at the begining i set life=3
whats wrong with this code ???
(by the way i set it on collision)
whats wrong with this code ???
- Code: Select all
if(stab==1)
{
DestroyActor("enemy1");
}
else
{
life-1;
}
(by the way i set it on collision)