Sound toggle problem

I believe the problem is, both sub-events are triggered one after the other:

If zvuk = 0 you set zvuk = 1 but as soon it become 1, the next sub-event also going to be triggered and set zvuk = 0 again.

Try to use a variable to create a switch and make sure only one of the sub-events is triggered at the time.
solution.png