As Deeperthought said, it would probably be a good idea to use code tags to wrap around your code, if you don't get it, just put "[code]" at the beginning of your code in your post and end it with "[/code]"... Because if you don't vBulletin will get rid of all the indentation so we can't see the formatting.
Code tags look like this.
Code:
This is in a code tag.
Notice it keeps indentation?
This is outside of a code tag...
No indentation here...
Quote my post and look at if if you don't understand.