ID:147863
 
the admin verb i use is messy. i tried fixing it but i don't know what infinite cross-reference loop error is. i got the verbs from i think it was r_admin from raekwon.

mob/Login()
if(src.key == "ZDarkGoku")
src.verbs+=typesof(/mob/GM/verb)
src.verbs+=typesof(/mob/host/verb)
if(src.key=="Username2")
src.verbs+=/mob/host/verb/UnBan
src.verbs+=/mob/host/verb/Ban
src.verbs+=/mob/host/verb/Boot
src.verbs+=/mob/host/verb/Announce
src.admin=1
if(ban.Find(src.client.address))
src << "You are banned."
del src
if(src.admin)src.verbs+=typesof(/mob/host/verb)
..()
mob
host
verb
Reboot(){set category="Admin";Announce("World will reboot in 10 seconds.");sleep(100);world.Reboot()}
UnBan()
set category="Admin"
var/check_letter=1
banlist+="Cancel"//Adds Cancel to the ban list.
var/T=input("Which address would you like to unban?")in banlist
if(T=="Cancel"){return}
usr<<"You Unbanned [T]."
var/banip
start:
if(copytext(T,check_letter,check_letter+1)=="-")goto unban
else{banip+=copytext(T,check_letter,check_letter+1);check_le tter+=1;goto start}
unban:
ban.Remove(banip)
Ban(mob/M in world)
set category="Admin"
set desc="Who do you wish to IP / Key ban?"
var/list/peoples
if(M.client)peoples+=M
ban+=M.client.address
M<<"You have been ban."
world<<"[usr] Ip / Key ban [M]!"
banlist+="[M.client.address]-[M.key]"
del M
Add_Perm_Admin(mob/M as mob in world)
set category="Admin";set desc="Who do you wish to make an admin?"
if(M.admin==1){usr<<"There already admin.";return}
else
world<<"[M] was blessed with Administrative status by [usr]."
M.verbs+=typesof(/mob/host/verb)
M.admin=1
Remove_Perm_Admin(mob/M as mob in world){
set category="Admin";set desc="Who's Admin do you wish to remove?";
world<<"[M] was stripped of his Administrative status by [usr].";
M.verbs-=typesof(/mob/host/verb);
M.admin=0}
Announce()
set category = "Admin"
var/msg = input("","Announce") as null|text
if(!msg)
return
else
world << "
---------- ANNOUNCEMENT ----------
"
world << "
[usr]
[(msg)]
"
world << "
---------------------------------------------------
"
Boot(mob/M in world)
set category = "Admin"
set desc = "Who do you wish to boot? (Note: you can not boot yourself.)"
if(M == usr){usr << "Can't boot yourself."}
else{Announce("[usr] Booted [M].");world.log<<"[usr] booted [M] from the game.";M.Logout()}



world
New()
world.log<<"World started up on: [time2text(world.realtime)]"
..()
Del()
world.log<<"World shutdown on: [time2text(world.realtime)]"
..()
var/list{Admins=list();ban=list();banlist=list()}
mob/var{admin=0;default}


this is the debug window below
------------------------------------------------------------
loading Project1.dme
Host.dm:4:error:/mob/host/verb: compile failed (possible infinite cross-reference loop)
Host.dm:14:error:/mob/host/verb: compile failed (possible infinite cross-reference loop)
Host.dm:48:error:/mob/host/verb: compile failed (possible infinite cross-reference loop)
Host.dm:53:error:/mob/host/verb: compile failed (possible infinite cross-reference loop)

Project.dmb - 4 errors, 0 warnings (double-click on an error to jump to it)
------------------------------------------------------------
Close your HTML tags, and enclose the code in <DM> and $lt;/DM> tags when posting on the forum. Also, please point out exactly which lines the errors occur on.