View Single Post
  #2 (permalink)  
Old 12-04-06, 09:10 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
wow dude: that's an awfull lot of code. but here's what i found:
1. you forgot to close the following if:
PHP Code:

 if($step == "fightsim"){ 

i assume this should be closed right before:
PHP Code:

if($step == "battle"){ 

2. you forgot to close the following if as well:
PHP Code:

if($step == "battle"){ 

A good way to check if all if's are closed, is to delete all closed if's. You start from the deepest if (the if in the if in the if, ....), and then you go all the way up.

I noticed that you're repeating tons of code. I recommend you to take a look into function. They will speed up your program, and it make the code a much better to handle.

Code:
unexpected $end in
means that you forgot to close an if, while, for, foreach, etc...

UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote