mob/wolf/verb/toss_bomb(n as int){ |
Problem description:
What errors are here?
Code:
Problem description: What errors are here? | ||
#2 Feb 21 2012, 10:34 am (Edited on Feb 21 2012, 11:19 am)
|
|
Can you post here the right variant of code, please?
| |
1. You don't seem to be using 'n' in there at all. Still, 'int' isn't a DM keyword.
2. The indentation and braces are set perfectly, so that's not the issue. (However, your use of one-space tabs isn't very nice to read) 3. It's hard to tell what you're trying to pass to the burst() procedure because it's not provided. Are you trying to pass 3 numbers, or a location returned by locate() of the 3 numbers? You should make a procedure to get a location 'n' tiles away in a certain direction, so you don't have to do this big if/else/if chain whenever you want to do this.
| ||
2: Your indentation is also wrong. You have the braces set the wrong way.
These are the errors/problems I can see according to the current code you posted.