Python Problem!

Hi , I know some stuff of python but I run in a weird problem that is only inside the bge and not on python by itself

when I put multiple codes after an “if” statement I get an error : unexpected indent

this is my example:

if x == 1:
    cont.activate("Start Battle Msg")
    cont.activate("act")
else:
    pass

it points at ‘cont.activate(“act”)’ and says unexpected indent

if I am not wrong this happens every time I have 2 “actions” together like that not
only inside “if” statements is there anything special I can do for this?

In the text editor go to the format tab, choose convert white space, and then choose to spaces

if that fails, use the backspace key, and remove all the indentation, so it all touches the left margin. Then use the [TAB] key to add the indents back

Be sure not to mix spaces and tabs.

Also you can convert spaces to tabs, in 2.5 it is under Format > Convert Whitespace.

thx the convert to spaces worked, I always use tabs to make spaces (in this specific post I did tab but the 3rd line was a bit on front on this site only not on blender)
thx a lot ;D