ID:777654
 
Keywords: error, proc
(See the best response by LordAndrew.)
can some one tell me y i ceep geing an error on this
    Stat()
if(statpanel("Statics"))
stat("> Strength","[src.str.String()] [src.str.Procent()]")
stat("> Defence","[src.def.String()] [src.def.Procent()]")
stat("> Health","[src.hp.String()] [src.hp.Procent()]")
stat("> Experience","[src.exp.String()] [src.exp.Procent()]")
for(var/mob/M in oview(1))
if(statpanel("[M]"))
stat("> Strength","[M.str.String()] [M.str.Procent()]")
stat("> Defence","[M.def.String()] [M.def.Procent()]")
stat("> Health","[M.hp.String()] [M.hp.Procent()]")



stats.dm: 2: proc definition not allowed inside another proc


i was makeing a start for pepol to start at when this happend

this is the coed i was useing
mob/Stat()
icon = '.dmi'
Login()
usr.loc=locate (10,5,1)
usr.icon = 'male.dmi'
Best response
Login() shouldn't be tabbed under Stat().

mob
icon = 'player.dmi'

Stat()
// stat stuff here

Login()
// login stuff here
i have even more error

Combat/combat.dm:86 inconsistent indentation

ok i changed the login code to this

mob
turf
Start
icon = '.dmi'
usr.loc=locate (10,5,1)
usr.icon = 'male.dmi'


fixing most of the errors

now i oley have 1 start.dm:6:inconsistent indentation

o shot am sorry i ceep saying this is a log in coed this is just a code for a spawn on the map
I'm willing to bet that the inconsistent indentation error has become because you tried to copy and paste LordAndrew's code; if you do this, it populates the whitespace with the "space" character, rather than the "tab" character; mixing these two isn't allowed by the compiler.
um dud u r rong for i put the coed in my self i fond out a log time ago that u should not copy in past the codes
In that case, the error is exactly what it says; at some point, something is indented wrong.

You need to look for a line that's either not tabbed over enough, or is tabbed over too much.
You have a section of code tabbed under icon = '.dmi'. You need to go back to the guide and study up on the syntax more.