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)
ID:178331
May 27 2002, 2:48 am
|
|