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: |
In response to Urashime
|
|
You're missing a comma between "Attack" and "src".
flick("Attack", src) |
In response to Urashime
|
|
This isn't developer help >:O
|
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 |
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.
|
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 |
Get rid of the left parenthesis in your for() loop.
You have: for(var(/mob/M in get_step(src,src.dir)) That's 3 left parenthesis and only 2 right parenthesis. Instead do this: for(var/mob/M in get_step(src,src.dir)) |
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)
|
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 |
also getting a
Code.dm:10:error: src.LoadProc: undefined proc