There must be about 800 million variations of this code floating around. I find it a bit difficult to believe that you can't find code that works.
[/quote]
Well you see i like to do it myself not copy paste from the internet
Well luckily in this case, you can just copy and paste your own code. digitalWrite's second parameter should be HIGH or LOW. Fix that and then copy & paste your for loop so you have one version setting the leds HIGH followed by one that sets them LOW.