mob
GM1
verb
Rename(var/mob/M in world)
set category = "GM"
set desc = "Change A Mob's Name"
if(!M.key) continue
var/ID = input("What name do you want to rename [M] as?","Rename",M.name) as text
if(length(ID) <= 2)
src<<"<font color = red> Their name must be longer then 2 characters!"
else
src << "[M]'s name is now [html_encode(ID)]"
world << "[M]'s name is now [html_encode(ID)]"
M.name = "[html_encode(ID)]"
Problem description:
Well.. Hi everyone.. I'm getting a error.
Codes\Admin.dm:7:error: continue: not in a loop
I know when I make it
var/mob/M
for(M in world)
if(!M.key) continue
that would work.. but if I do that, I can't choose the mob I want to change name to...