As xxxxxxx said, c_scan does not always give a you pointer !!!
Quote:

since when I change your.HEALTH to my.HEALTH it doesn't crash anymore.

...because you is empty at this moment, c_scan set you to zero.

Code:
c_scan(...)
if (you)
{
   you.HEALTH -= my.DAMAGE;
}



Last edited by Widi; 02/13/11 00:55.