ID:141087
 

var/obj/O=O=new/obj/Supplemental/DamageNum


Code\NPCS.dm:123:error: proc definition not allowed inside another proc:


any ideas what this could be?
var/obj/O = new/obj/Supplemental/DamageNum


Don't define it twice?
In response to Darksteam Games
mob/proc/DamageShow(var/damage,var/VarR=200,VarG=0,VarB=0)
is(istext(damage))
var/obj/O = new/obj/Supplemental/DamageNum
O.locate(src:x,src:y,:src:z)
flick("[damage]",O)
return
damage=num2text(damage)
var/pxplus=-7
var/spot=0
while(pxplus<(length(damage)*7)-7)
spot+=1
pxplus+=7
var/obj/supplemental/DamageNum/O=new()
O.pixel_x+=pxplus
O.loc=locate(src:x,src:y,src:z)
O.icon+=rgb(VarR,VarG,VarB)
flick("[copytext/damage,spot,spot+1)]",O)




it still dosent work?

Code\NPCS.dm:124:error: proc definition not allowed inside another proc

when i click the error it points at var/obj/O = new/obj/Supplemental/DamageNum
In response to Sleaze
Sleaze wrote:
mob/proc/DamageShow(var/damage,var/VarR=200,VarG=0,VarB=0)
> is(istext(damage))
> var/obj/O = new/obj/Supplemental/DamageNum
> O.locate(src:x,src:y,:src:z)
> flick("[damage]",O)
> return
> damage=num2text(damage)
> var/pxplus=-7
> var/spot=0
> while(pxplus<(length(damage)*7)-7)
> spot+=1
> pxplus+=7
> var/obj/supplemental/DamageNum/O=new()
> O.pixel_x+=pxplus
> O.loc=locate(src:x,src:y,src:z)
> O.icon+=rgb(VarR,VarG,VarB)
> flick("[copytext/damage,spot,spot+1)]",O)
>

it still dosent work?

Code\NPCS.dm:124:error: proc definition not allowed inside another proc

when i click the error it points at var/obj/O = new/obj/Supplemental/DamageNum

Can't take two seconds to actually look over the code?

You put 'is' instead of 'if'.
In response to Sleaze
Sleaze wrote:
mob/proc/DamageShow(var/damage,var/VarR=200,VarG=0,VarB=0)
> is(istext(damage))
> var/obj/O = new/obj/Supplemental/DamageNum
> O.locate(src:x,src:y,:src:z)
> flick("[damage]",O)
> return
> damage=num2text(damage)
> var/pxplus=-7
> var/spot=0
> while(pxplus<(length(damage)*7)-7)
> spot+=1
> pxplus+=7
> var/obj/supplemental/DamageNum/O=new()
> O.pixel_x+=pxplus
> O.loc=locate(src:x,src:y,src:z)
> O.icon+=rgb(VarR,VarG,VarB)
> flick("[copytext/damage,spot,spot+1)]",O)
>

it still dosent work?

Code\NPCS.dm:124:error: proc definition not allowed inside another proc

when i click the error it points at var/obj/O = new/obj/Supplemental/DamageNum

Take out the ":" before "src:z", then put "if", not "is"...
In response to T3h P3ngu1n
well even tho i fixed that it still says the same error.
In response to Sleaze
Since we can quite obviously know what line your talking about, you don't need that compiling error you put there!

But seriously, it says something along the lines of "line 101", well we don't know which line is 101. We don't have "Go to line" or "double click error message".
In response to Demon_F0rce
mob/proc/BasicSkillUse(var/obj/Skills/S)roc
if(src.Rei>=S.ReiCost)
src.Rei-=S.ReiCost
return 1
else
src<<"You dont have enough Reiatsu to use this!"
return 0



And when i dbl click the error it marks the

mob/proc/BasicSkillUse(var/obj/Skills/S)roc

line.
the error was bad argument definition..

In response to Sleaze
is the "roc" supposed to be on that line? I'm still kinda new to programming with dream maker but that doesn't look like it's supposed to be there.
In response to Sleaze
...what's with the "roc" after the )?