ID:149762
 
In my game I added the Character saving demo and copied all of exept with differnt chars, but when I fininshed it gave me 50 inconistant indecations

Can someone help??
You have to be sure that the indentation to everything you did is right.


Wrong way:


mob
icon = 'mob.dmi'
icon_state = "mob" //Inconstant indentation
name = "Player"



Right way:


mob
icon = 'mob.dmi'
icon_state = "mob"
name = "Player"
Pizzaro wrote:
In my game I added the Character saving demo and copied all of exept with differnt chars, but when I fininshed it gave me 50 inconistant indecations

Can someone help??

If you get an "inconsistent indentation" error, it means one (or both) of two things:

  • You have lines indented too far or not enough, in a way that confuses the compiler.
  • You spaces mixed in with tabs in your code, when you should be using one or the other.

    Usually the second one is the big problem for people who cut and paste code.

    Lummox JR
  • Everything is indented far enough.
  • Everything is lined up perfectly.

    You might have indented something wrong that caused this whole thing to happen to your code.Or you just indented a lot of this wrong to cause this to happen to your code.
when i used that demo or a different save demo i got 100 + errors and they were all bad vars i don't get too pissed at it like i did. the error u got just takes a little time to indent the code.