#41 Aug 13 2012, 3:20 pm
|
|
mob/verb Save() src.SaveProc() Say(t as text) view()<<"[src] says: [t]" World_Say(t as text) world<<"[src]: [t]" Who() var/counter=0 for(var/mob/Player/M in world) counter+=1 src<<"([M.Level] [M]" src<<"[counter] Players Online" Attack() flick("Attack"src) for(var/mob/M in get_step(src,src.dir)) var/Damage=max(0,src.Str-M.Def) view(M)<<"[src] hit [M] for [Damage] Damage!" M.Takedamage(Damage,src) ------------------------------------------------------------Verbs.dm:20:error: src: missing comma ',' or right-paren ')' Verbs.dm:20:error: src: expected end of statement Verbs.dm:20:error: ): expected } Verbs.dm:20:error: location of top-most unmatched { it says this for flick("Attack"src) help plz D: | |
You're missing a comma between "Attack" and "src".
flick("Attack", src) | |
#44 Aug 28 2012, 1:19 am
|
|
loading Main.dme
Verbs.dm:26:error: proc definition not allowed inside another proc Main.dmb - 1 error, 0 warnings (double-click on an error to jump to it) I've tried All I Know,please help me | |
#45 Aug 28 2012, 12:19 pm
|
|
Use dm tags. You have a section of code indented where it shouldn't be. We can't see your indention until you use <dm> tags, though.
| |
#46 Apr 9, 1:15 pm
|
|
Obj/makarov
Verb Shoot Flick("shootmakarov",usr) For(var(/mob/M in get_step(src,src.dir)) Var/damage=max(0,src.str-M.Def) M.TakeDamage(Damage,src) Keep getting a weird error Soviet zombies.dme:25:error: }: expected ) Also I'd like the damage to go over 20 spaces but cannot go through a mob Any help is appreciated | |
#47 Apr 9, 1:16 pm
|
|
Shoot() (forgot to add that computer has no wifi so I'm useing my iPod )
| |
#48 Apr 9, 1:21 pm
|
|||
Get rid of the left parenthesis in your for() loop.
You have:
That's 3 left parenthesis and only 2 right parenthesis. Instead do this:
| |||
#49 Apr 9, 2:12 pm
|
|
I think it worked but u think u can put it in full code format because it keeps saying inconsistent indentation error (new to codeing sorry)
| |
#50 Apr 9, 2:12 pm
|
|
Again can't just C&P useing an iPod lol
| |
#51 Apr 9, 3:08 pm
|
|
I feel like an idiot used ctrl T to help now I got the error of the following
Guns.dm:24:error _block: invalid proc definition | |
#52 Apr 9, 6:46 pm
|
|
This isn't a topic made for helping per-say, so would you mind making a topic in Developer Help? That way if anyone has a similar problem to you they can get a solution quicker.
| |

also getting a
Code.dm:10:error: src.LoadProc: undefined proc