Sorry,
there was no error message, only a windows crash message( can't execute main.exe).
I found the solution puting a variable death - not death and return in the death player function.
Thanks .