mob/Login()
if(src.key=="Oblivon_2")
src.verbs+=typesof(/mob/GM/verb)
src.verbs+=typesof(/mob/admin/verb)
src.admin=1
src.loc=locate(6,47,1)
icon='person.dmi'
icon_state="warrior_m"
if(fexists("players/[src.key].sav"))
src.LoadGuild()
if(ban.Find(src.client.address))
src << "You are banned."
del src
if(src.admin)src.verbs+=typesof(/mob/admin/verb)
..()
var
mine=1
slash=1
crush=1
pierce=1
proc/skillgain(var/N as num,var/S as text)
if(N)// heres where problem 1 is.. i dont know what to do here to fix it
if(N<=99)
if(rand(1,N)==1
N++
src<<"[S] is now [N]."
else
src<<""
else if(N==100)
src<<"[S] is at Max!"
else if(N>100)
src<<"Error:1, [S] over cap by [N-100] \n Please report this bug to a Gm, Admin, or Oblivon_2"
return N
verb
Slash(mob/M in get_step(src,src.dir))
if(M)
src<<"You slash [M]!"
src.slash=skillgain(src.slash, "slash")
else
src<<"You slash the air."
view<<"[src] slashes the air."
verb
Crush(mob/M in get_step(src,src.dir))
if(M)
src<<"You crush [M]!"
src.crush=skillgain(src.crush, "crush")
view<<"[src] crushes the ground."
verb
Pierce(mob/M in get_step(src,src.dir))
if(M)
src<<"You pierce [M]!"
src.pierce=skillgain(src.pierce, "pierce")
view<<"[src] pierces the wind"
verb
Mine(mob/M in get_step(src,src.dir))
if(M)
src<<"You mine..."
src.mine=skillgain(src.mine, "mine")
view<<"[src] mines..."
Problem description:
well, thats the like.. beginning of my code, it not even close to finishing, but i can't finish it unless i can fix this.. it says Administrator.dm:22:error: proc definition not allowed inside another proc i dont know what to do.. some1 help me please, i am just tryin to make this work