ID:178331
 
Ummm, I am making a game, and I keep getting this error when I compile it:

dm:244:error: proc definition not allowed inside another proc

the code that is highlighted is:


// Fighting!
Swing()
if(doing_action == 1)
usr << "You are already performing an action!"
else
flick("swinging",src)
doing_action = 1
if(current_direction == "north")
shoot_north(src)
sleep(4)
doing_action = 0
if(current_direction == "south")
shoot_south(src)
sleep(4)
doing_action = 0
if(current_direction == "east")
shoot_east(src)
sleep(4)
doing_action = 0
if(current_direction == "west")
shoot_west(src)
sleep(4)
doing_action = 0
of course, that isn't the highlighted part, that is all of that verb, the highlight is:

if(doing_action == 1)
Can you post the code before Swing()?
In response to Nova2000
what? I just want a custom icon and some verbs.
In response to Airjoe
oops, sorry, wrong post, well, I don't have the game anymore, it was sum1 elses, I was helping him, so,