ID:142610
 
the problem is:
loading Cots.dme
hatake.dm:197:error:/obj/sharinganeyes3:undefined type path
hatake.dm:209:error:/obj/sharinganeyes1:undefined type path
hatake.dm:211:error:M.loc:undefined type: M.loc
hatake.dm:220:error:M:undefined type: M
hatake.dm:239:error:/obj/sharinganeyes2:undefined type path
hatake.dm:241:error:M.loc:undefined type: M.loc
hatake.dm:251:error:M:undefined type: M
hatake.dm:267:error:/obj/sharinganeyes3:undefined type path
hatake.dm:269:error:M.loc:undefined type: M.loc
hatake.dm:283:error:M:undefined type: M
hatake.dm:295:error:/obj/Hmangeyes:undefined type path
hatake.dm:297:error:M.loc:undefined type: M.loc
hatake.dm:310:error:M:undefined type: M
hatake.dm:209:M :warning: variable defined but not used
hatake.dm:239:M :warning: variable defined but not used
hatake.dm:267:M :warning: variable defined but not used
hatake.dm:295:M :warning: variable defined but not used


why is M defined but not used and why is M.loc undefined and M undefined type
MikeyM14 wrote:
the problem is:
loading Cots.dme
hatake.dm:197:error:/obj/sharinganeyes3:undefined type path
hatake.dm:209:error:/obj/sharinganeyes1:undefined type path
hatake.dm:211:error:M.loc:undefined type: M.loc
hatake.dm:220:error:M:undefined type: M
hatake.dm:239:error:/obj/sharinganeyes2:undefined type path
hatake.dm:241:error:M.loc:undefined type: M.loc
hatake.dm:251:error:M:undefined type: M
hatake.dm:267:error:/obj/sharinganeyes3:undefined type path
hatake.dm:269:error:M.loc:undefined type: M.loc
hatake.dm:283:error:M:undefined type: M
hatake.dm:295:error:/obj/Hmangeyes:undefined type path
hatake.dm:297:error:M.loc:undefined type: M.loc
hatake.dm:310:error:M:undefined type: M
hatake.dm:209:M :warning: variable defined but not used
hatake.dm:239:M :warning: variable defined but not used
hatake.dm:267:M :warning: variable defined but not used
hatake.dm:295:M :warning: variable defined but not used


why is M defined but not used and why is M.loc undefined and M undefined type

Post the code please? And tried using this for(/var/mob/M)?
It would be really helpfull if you did post the code.
What's happening here is that you are trying to create a variable called M with an invalid type path(the path isn't defined) and if you don't use a variable once you define it, then it'll give you an error(this is to save you from definign vars that aren't used).
In response to Espeon1992
heres the code

mob/var
Hatake=0
/var/mob/
M
mob/hatake
verb
Raikiri()
set category = "Jutsu"
set name = "Raikiri"
usr.Handseals()
if (usr.ingat)
return
if(usr.PK==0)
usr<<"NON PK ZONE!"
return
if (usr.intank)
return
if (usr.Kaiten||usr.Suijinheki)
return
if (usr.sphere)
return
if (usr.firing)
return
if(Chidorion)
usr <<"Your already using Raikiri!"
return
if(!usr.handseals)
return
else
if(usr.rank == "Chunnin"||usr.rank=="Genin"||usr.rank=="Student")
usr<<"You're too weak to use this jutsu"
if(usr.chakra >= usr.Mchakra / 3)
if(usr.RaikiriU >= 30)
view() <<"<font size=1><font face=verdana><font color=blue>[usr]<font color=red> Says: <FONT COLOR=#ffff00>R</FONT><FONT COLOR=#d5ff00>a</FONT><FONT COLOR=#abff00>i</FONT><FONT COLOR=#80ff00>k</FONT><FONT COLOR=#55ff00>i</FONT><FONT COLOR=#2bff00>r</FONT><FONT COLOR=#00ff00>i</FONT>"
usr.RaikiriU += 1
usr.chakra -= usr.Mchakra / 3
usr.ChidoriD = usr.nin * 15
usr.Chidorion = 1
usr.firing = 1
usr.overlays += 'Raikiri.dmi'
usr.icon_state = "run"
sleep(30)
usr << "Your Raikiri runs out of energy"
usr.ChidoriD = 0
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.Chidorion = 0
sleep(50)
usr.firing = 0
else
usr.random = rand (1,3)
if(usr.random == 1)
view() <<"<font size=1><font face=verdana>
<font color=blue>[usr]<font color=red> Says: <FONT COLOR=#ffff00>R</FONT><FONT COLOR=#d5ff00>a</FONT><FONT COLOR=#abff00>i</FONT><FONT COLOR=#80ff00>k</FONT><FONT COLOR=#55ff00>i</FONT><FONT COLOR=#2bff00>r</FONT><FONT COLOR=#00ff00>i</FONT>"
usr.Chidorion = 1
usr.RaikiriU += 1
usr.chakra -= usr.Mchakra / 3
usr.ChidoriD = usr.nin * 13
usr.firing = 1
usr.overlays += 'Raikiri.dmi'
usr.icon_state = "run"
sleep(50)
usr << "Your Raikiri runs out of energy"
usr.ChidoriD = 0
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.overlays -= 'Raikiri.dmi'
usr.Chidorion = 0
sleep(20)
usr.firing = 0
else
usr<<"You fail to use Raikiri!"
usr.chakra -= usr.Mchakra / 3
sleep(20)
return

mob/hatake
verb
MangekyouPrep()
set category="Doujutsu"
set name = "Use Mangekyou"
if(usr.firing)
return
usr.goingmange=1
usr.sharingan3=0
usr<<"Now use Sharingan"
sleep(100)
usr.goingmange=0
usr.sharingan3=1


mob/hatake
verb
DemensionWarp(mob/M in oview())
set name = "Demension Warp"
set category = "Doujutsu"
if(usr.firing)
return
if(usr.chakra<usr.Mchakra/2)
usr<<"Not enough chakra"
return
if(usr.PK==0)
usr<<"Non PK Zone"
return
if(M.PK==0)
usr<<"Non PK Zone"
return
if(M.NPC)
usr<<"You can't target NPCs"
return
else
if(usr.gen>M.gen)
usr.chakra=0
firing=1
var/randnum
randnum=rand(1,15)
if(randnum==1)
view()<<"[usr] warps [M] to the leaf village"
M.loc=locate(57,28,1)
sleep(300)
firing=0
else if(randnum==2)
view()<<"[usr] warps [M] to the sand village"
M.loc=locate(81,36,5)
sleep(300)
firing=0
else if(randnum==3)
view()<<"[usr] warps [M] to the grass village"
M.loc=locate(19,28,3)
sleep(300)
firing=0
else if(randnum==4)
view()<<"[usr] warps [M] to the sound village"
M.loc=locate(28,50,6)
sleep(300)
firing=0
else if(randnum==5)
view()<<"[usr] warps [M] to the rain village"
M.loc=locate(77,23,4)
sleep(300)
firing=0
else if(randnum==6)
view()<<"[usr] warps [M] to the rock village"
M.loc=locate(71,7,7)
sleep(300)
firing=0
else if(randnum==7)
view()<<"[usr] warps [M] to the cloud village"
M.loc=locate(36,45,8)
sleep(300)
firing=0
else if(randnum==8)
view()<<"[usr] warps [M] to the mist village"
M.loc=locate(23,79,9)
sleep(300)
firing=0
else if(randnum==9)
view()<<"[usr] warps [M] to the waterfall village"
M.loc=locate(11,41,24)
sleep(300)
firing=0
else if(randnum==10)
view()<<"[usr] warps [M] to the snow village"
M.loc=locate(76,61,27)
sleep(300)
firing=0
else
usr<<"You failed to warp them"
firing=0
else
usr<<"They're stronger than you"
SharinganMimic()
set name = "Sharingan Mimic"
set category = "Doujutsu"
if(usr.firing||usr.Kaiten||usr.Suijinheki)
return
if(usr.chakra<250000)
usr<<"Not enough chakra"
return
else
usr.chakra -= 250000
usr.firing=1
for(var/obj/M in oview(usr,10))
if(M.tai>0||M.nin>0||M.gen>0)
var/obj/HMimic/K = new /obj/HMimic
K.loc = usr.loc
K.nin=usr.nin
K.dir = usr.dir
K.icon = M.icon
K.icon_state = M.icon_state
K.name="[usr]"
K.Gowner=usr
walk_towards(K,M)
//walk(K,usr.dir)
spawn(20)
del(K)
flick(/obj/sharinganeyes3,usr)
spawn(30)
usr.firing=0
HSharingan()
set category = "Doujutsu"
set name = "Sharingan"
if(!usr.shari&&usr.sharingan1)
if(usr.bandanat==2)
for(var/obj/Headband/Q in usr.contents)
usr.overlays -= 'kakashi style.dmi'
usr.bandanat=1
usr.overlays += 'headband.dmi'
var/obj/sharinganeyes1/M = new /obj/sharinganeyes1
usr.dir=SOUTH
M.loc = locate(usr.x+1,usr.y+1,usr.z)
usr.overlays += 'Hsharingan.dmi'
view()<<"<font size=1><font face=verdana><font color=black>[usr]<font color=green> Says: <FONT COLOR=#8b0000>S</FONT><FONT COLOR=#a0050f>h</FONT><FONT COLOR=#b40b1f>a</FONT><FONT COLOR=#c9102e>r</FONT><FONT COLOR=#dc143c>i</FONT><FONT COLOR=#ca1131>n</FONT><FONT COLOR=#b80d25>g</FONT><FONT COLOR=#a50818>a</FONT><FONT COLOR=#93040c>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr] lifts his headband to reveal stage 1 sharingan!"
usr.shari=1
if(usr.Hatake)
usr.nin=usr.nin*1.05
usr.see_invisible = 1
sleep(15)
del(M)
if(usr.Mnin>25000||usr.Mgen>25000)
usr.sharingan1=0
usr.sharingan2=1
if(usr.Mnin>40000||usr.Mgen>40000)
usr.sharingan3=1
usr.sharingan2=0
usr.sharingan1=0
if(usr.Mgen>45000)
usr.sharingan2=0
usr.sharingan1=0
usr.mangekyou=1
return
if(!usr.shari&&usr.sharingan2)
if(usr.bandanat==2)
for(var/obj/Headband/Q in usr.contents)
usr.overlays -= 'kakashi style.dmi'
usr.bandanat=1
usr.overlays += 'headband.dmi'
var/obj/sharinganeyes2/M = new /obj/sharinganeyes2
usr.dir=SOUTH
M.loc = locate(usr.x+1,usr.y+1,usr.z)
usr.overlays += 'Hsharingan.dmi'
view()<<"<font size=1><font face=verdana>
<font color=black>[usr]<font color=green> Says: <FONT COLOR=#8b0000>S</FONT><FONT COLOR=#a0050f>h</FONT><FONT COLOR=#b40b1f>a</FONT><FONT COLOR=#c9102e>r</FONT><FONT COLOR=#dc143c>i</FONT><FONT COLOR=#ca1131>n</FONT><FONT COLOR=#b80d25>g</FONT><FONT COLOR=#a50818>a</FONT><FONT COLOR=#93040c>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr] lifts his headband to reveal stage 2 sharingan!"
usr.shari=1
if(usr.Hatake)
usr.nin=usr.nin*1.1
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.see_invisible = 1
sleep(15)
del(M)
if(usr.Mnin>40000||usr.Mgen>40000)
usr.sharingan3=1
usr.sharingan2=0
usr.sharingan1=0
if(usr.Mgen>45000)
usr.sharingan2=0
usr.sharingan1=0
usr.mangekyou=1
return
if(!usr.shari&&usr.sharingan3)
if(usr.bandanat==2)
for(var/obj/Headband/Q in usr.contents)
usr.overlays -= 'kakashi style.dmi'
usr.bandanat=1
usr.overlays += 'headband.dmi'
var/obj/sharinganeyes3/M = new /obj/sharinganeyes3
usr.dir=SOUTH
M.loc = locate(usr.x+1,usr.y+1,usr.z)
usr.overlays += 'Hsharingan.dmi'
view()<<"<font size=1><font face=verdana><font color=black>[usr]<font color=green> Says: <FONT COLOR=#8b0000>S</FONT><FONT COLOR=#a0050f>h</FONT><FONT COLOR=#b40b1f>a</FONT><FONT COLOR=#c9102e>r</FONT><FONT COLOR=#dc143c>i</FONT><FONT COLOR=#ca1131>n</FONT><FONT COLOR=#b80d25>g</FONT><FONT COLOR=#a50818>a</FONT><FONT COLOR=#93040c>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr] lifts his headband to reveal stage 3 sharingan!"
usr.shari=1
usr.Move_Delay=0
usr.nin=usr.nin*1.15
if(usr.Hatake)
usr.nin=usr.nin*1.2
if(usr.Hatake)
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.verbs += /mob/hatake/verb/SharinganMimic
usr.see_invisible = 1
sleep(15)
del(M)
if(usr.Mgen>45000)
usr.sharingan2=0
usr.sharingan1=0
usr.mangekyou=1
return
if(!usr.shari&&usr.mangekyou&&!usr.ST&&usr.goingmange)
if(usr.bandanat==2)
for(var/obj/Headband/Q in usr.contents)
usr.overlays -= 'kakashi style.dmi'
usr.bandanat=1
usr.overlays += 'headband.dmi'
var/obj/Hmangeyes/M = new /obj/Hmangeyes
usr.dir=SOUTH
M.loc = locate(usr.x+1,usr.y+1,usr.z)
usr.overlays += 'Hsharingan.dmi'
view()<<"<font size=1><font face=verdana>
<font color=black>[usr]<font color=green> Says: <FONT COLOR=#696969>M</FONT><FONT COLOR=#766065>a</FONT><FONT COLOR=#835760>n</FONT><FONT COLOR=#904d5b>g</FONT><FONT COLOR=#9d4456>e</FONT><FONT COLOR=#a93a50>k</FONT><FONT COLOR=#b6314b>y</FONT><FONT COLOR=#c32746>o</FONT><FONT COLOR=#d01e41>u</FONT><FONT COLOR=#dc143c> </FONT><FONT COLOR=#d41337>S</FONT><FONT COLOR=#ca1131>h</FONT><FONT COLOR=#c10f2b>a</FONT><FONT COLOR=#b80d25>r</FONT><FONT COLOR=#af0b1f>i</FONT><FONT COLOR=#a50818>n</FONT><FONT COLOR=#9c0612>g</FONT><FONT COLOR=#93040c>a</FONT><FONT COLOR=#890206>n</FONT><FONT COLOR=#800000>!</FONT>"
view()<<"[usr] lifts their headband to reveal the Legendary Mangekyou Sharingan!"
usr.shari=1
usr.gen=usr.gen*1.3
usr.sharingan3=1
usr.verbs += /mob/uchiha/verb/Sharinganfreeze
usr.verbs += /mob/uchiha/verb/Tsukiyomi
usr.verbs += /mob/hatake/verb/DemensionWarp
usr.verbs += /mob/hatake/verb/SharinganMimic
usr.see_invisible = 1
sleep(15)
del(M)
return
else if(usr.shari)
if(usr.bandanat==1)
for(var/obj/Headband/Q in usr.contents)
usr.overlays += 'kakashi style.dmi'
usr.bandanat=2
usr.overlays -= 'headband.dmi'
usr<<"You release your Sharingan."
usr.overlays -= 'Hsharingan.dmi'
usr.overlays -= 'Hsharingan.dmi'
usr.overlays -= 'Hsharingan.dmi'
usr.overlays -= 'Hsharingan.dmi'
usr.see_invisible = 0
usr.nin=usr.Mnin
usr.gen=usr.Mgen
usr.goingmange=0
usr.verbs -= /mob/uchiha/verb/Sharinganfreeze
usr.verbs -= /mob/uchiha/verb/Tsukiyomi
usr.verbs -= /mob/hatake/verb/DemensionWarp
usr.verbs -= /mob/hatake/verb/SharinganMimic
usr.shari = 0
sleep(50)
usr.ST=0
return
obj
HMimic
icon = '5 Prong Seal.dmi'
density = 1
Bump(A)
if(ismob(A))
var/mob/M = A
if(M.Kaiten||M.sphere||M.Suijinheki)
return
if(M.PK==0)
return
var/damage = round(src.nin*2.5)
if(damage >= 1)
M.health -= damage
view(M) << "[M] was hit by attack for [damage] damage!!"
var/mob/O = src.Gowner
M.Death(O)
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
In response to MikeyM14
DM tags exist for a reason, y'know.