I see what skids trying to say. He's stating that your code is being evaluated like so:
and not like so: (which is what you wanted)
Of course, you could make it work by just adding the parenthesis like I did above.
I've had trouble myself sometimes using the And operator. Especially in situations with Not.
So something like this:
won't compile unless I add parenthesis like this:
If (vivo) = (1 and EntityCollided(player,2)) text 0,0,"You Are Dead" endif
and not like so: (which is what you wanted)
If (vivo = 1) and (EntityCollided(player,2)) text 0,0,"You Are Dead" endif
Of course, you could make it work by just adding the parenthesis like I did above.
I've had trouble myself sometimes using the And operator. Especially in situations with Not.
So something like this:
If this And Not that ;do something endif
won't compile unless I add parenthesis like this:
If this And (Not that) ;do something endif