ID:138715
 
Code:/*mob/proc/CheckRank()
if(Fuhrer==key) Fuhrer=null
if(General==key) General=null
if(Lieutenant_General==key) Lieutenant_General=null
if(Major_General==key) Major_General=null
if(Brigadier_General==key) Brigadier_General=null
if(Colonel==key) Colonel=null
if(Lieutenant_Colonel==key) Lieutenant_Colonel=null
if(Major==key) Major=null
if(Captain==key) Captain=null
if(First_Lieutenant==key) First_Lieutenant=null
if(Second_Lieutenant==key) Second_Lieutenant=null
if(Warrant_Officer==key) Warrant_Officer=null
if(Sergeant_Major==key) Sergeant_Major=null
if(Sergeant==key) Sergeant=null
if(Corporal==key) Corporal=null
if(Lance_Corporal==key) Lance_Corporal=null
if(Private==key) Private=null
if(Military_Police==key) Military_Police=null
if(Powerful_Local_Alchemist==key) Powerful_Local_Alchemist=null
//----------------------------------------------
if(Emporer_Xing==key) Emporer_Xing=null
if(Alkehestry_Master==key) Alkehestry_Master=null
if(Father_of_Darkness==key) Father_of_Darkness=null
if(Alchemist_of_Light==key) Alchemist_of_Light=null

mob/proc/Rank_Verb_Assign()
if(Fuhrer==key)
contents+=new/obj/Small_Sword
contents+=new/obj/White_Gloves
if(General==key)
if(Lieutenant_General==key)
if(Major_General==key)
if(Brigadier_General==key)
if(Colonel==key)
if(Lieutenant_Colonel==key)
if(Major==key)
if(Captain==key)
if(First_Lieutenant==key)
if(Second_Lieutenant==key)
if(Warrant_Officer==key)
if(Sergeant_Major==key)
if(Sergeant==key)
if(Corporal==key)
if(Lance_Corporal==key)
if(Private==key)
if(Military_Police==key)
if(Powerful_Local_Alchemist==key)
if(Emporer_Xing==key)
if(Alkehestry_Master==key)
if(Father_of_Darkness==key)
if(Alchemist_of_Light==key)
mob/proc/Save_Rank()
var/savefile/S=new("RANK")
S["FR"]<<Fuhrer
S["GL"]<<General
S["LG"]<<Lieutenant_General
S["MG"]<<Major_General
S["BG"]<<Brigadier_General
S["CL"]<<Colonel
S["LC"]<<Lieutenant_Colonel
S["MR"]<<Major
S["CN"]<<Captain
S["FL"]<<First_Lieutenant
S["SL"]<<Second_Lieutenant
S["WO"]<<Warrant_Officer
S["SM"]<<Sergeant_Major
S["ST"]<<Sergeant
S["CA"]<<Corporal
S["LC"]<<Lance_Corporal
S["PT"]<<Private
S["MP"]<<Military_Police
S["PA"]<<Powerful_Local_Alchemist
S["EX"]<<Emporer_Xing
S["AM"]<<Alkehestry_Master
S["FD"]<<Father_of_Darkness
S["AL"]<<Alchemist_of_Light
mob/proc/Load_Rank()
var/savefile/S=new("RANK")
S["FR"]<<Fuhrer
S["GL"]<<General
S["LG"]<<Lieutenant_General
S["MG"]<<Major_General
S["BG"]<<Brigadier_General
S["CL"]<<Colonel
S["LC"]<<Lieutenant_Colonel
S["MR"]<<Major
S["CN"]<<Captain
S["FL"]<<First_Lieutenant
S["SL"]<<Second_Lieutenant
S["WO"]<<Warrant_Officer
S["SM"]<<Sergeant_Major
S["ST"]<<Sergeant
S["CA"]<<Corporal
S["LC"]<<Lance_Corporal
S["PT"]<<Private
S["MP"]<<Military_Police
S["PA"]<<Powerful_Local_Alchemist
S["EX"]<<Emporer_Xing
S["AM"]<<Alkehestry_Master
S["FD"]<<Father_of_Darkness
S["AL"]<<Alchemist_of_Light
var
Fuhrer
General
Lieutenant_General
Major_General
Brigadier_General
Colonel
Lieutenant_Colonel
Major
Captain
First_Lieutenant
Second_Lieutenant
Warrant_Officer
Sergeant_Major
Sergeant
Corporal
Lance_Corporal
Private
Military_Police
Powerful_Local_Alchemist
Emporer_Xing
Alkehestry_Master
Father_of_Darkness
Alchemist_of_Light

mob/Admin2/verb/GiveRank(mob/M in world)
set category="Admin"
switch(input("Give Rank", "", text) in list ("Fuhrer","General"\
,"Lieutenant General","Major General","Brigadier General","Colonel","Lieutenant Colonel",\
"Major","Captain","First Lieutenant","Second Lieutenant","Warrant Officer","Sergeant Major",\
"Sergeant","Corporal","Lance Corporal","Private","Military Police","Powerful Local Alchemist",\
"Father of Darkness","Alchemist of Light","None",))
if("Fuhrer") Fuhrer=M.key
if("General") General=M.key
if("Lieutenant General") Lieutenant_General=M.key
if("Major General") Major_General=M.key
if("Brigadier General") Brigadier_General=M.key
if("Colonel") Colonel=M.key
if("Lieutenant Colonel") Lieutenant_Colonel=M.key
if("Major") Major=M.key
if("Captain") Captain=M.key
if("First Lieutenant") First_Lieutenant=M.key
if("Second Lieutenant") Second_Lieutenant=M.key
if("Warrant Officer") Warrant_Officer=M.key
if("Sergeant Major") Sergeant_Major=M.key
if("Sergeant") Sergeant=M.key
if("Corporal") Corporal=M.key
if("Lance Corporal") Lance_Corporal=M.key
if("Private") Private=M.key
if("Military Police") Military_Police=M.key
if("Powerful Local Alchemist") Powerful_Local_Alchemist=M.key
if("Emporer Xing") Emporer_Xing=M.key
if("Alkehestry Master") Alkehestry_Master=M.key
if("Father of Darkness") Father_of_Darkness=M.key
if("Alchemist of Light") Alchemist_of_Light=M.key
M.Rank_Verb_Assign()
var/Ranks={"



"}
mob/verb/Ranks()
set category="Other"
Ranks={"


*CENTRAL*


Fuhrer: [Earth_Guardian]

General: [Assistant_Guardian]

Lieutenant General: [Namekian_Elder]

Major General: [North_Kaio]

Brigadier General: [South_Kaio]

Colonel: [East_Kaio]

Lieutenant Colonel: [West_Kaio]

Major: [Grand_Kaio]

Captain: [Supreme_Kaio]

First Lieutenant: [Demon_Lord]

Second Lieutenant: [Changeling_Lord]

Warrant Officer: [King_of_Vegeta]

Sergeant Major: [President]

Sergeant: [Turtle]

Corporal: [Crane]

Private: [Private]

Military Police: [Military_Police]

*AMESTRIS COUNTRY*


Local Alchemist: [Powerful_Local_Alchemist]

*XING*


Emporer of Xing: [Emporer_Xing]

Alkehestry Master: [Alkehestry_Master]

*ANCIENT XERXES*


Father of Darkness: [Father_of_Darkness]
Alchemist of Light: [Alchemist_of_Light]
"}
Ranks+={"



"}
usr<


Problem description:Im getting these errors when i post this code no matter how hard I try i cant fix them i spent half an hour on this and then just facepalmed...







Ranks.dm:31:warning: if: if statement has no effect
Ranks.dm:32:warning: if: if statement has no effect
Ranks.dm:33:warning: if: if statement has no effect
Ranks.dm:34:warning: if: if statement has no effect
Ranks.dm:35:warning: if: if statement has no effect
Ranks.dm:36:warning: if: if statement has no effect
Ranks.dm:37:warning: if: if statement has no effect
Ranks.dm:38:warning: if: if statement has no effect
Ranks.dm:39:warning: if: if statement has no effect
Ranks.dm:40:warning: if: if statement has no effect
Ranks.dm:41:warning: if: if statement has no effect
Ranks.dm:42:warning: if: if statement has no effect
Ranks.dm:43:warning: if: if statement has no effect
Ranks.dm:44:warning: if: if statement has no effect
Ranks.dm:45:warning: if: if statement has no effect
Ranks.dm:46:warning: if: if statement has no effect
Ranks.dm:47:warning: if: if statement has no effect
Ranks.dm:48:warning: if: if statement has no effect
Ranks.dm:49:warning: if: if statement has no effect
Ranks.dm:50:warning: if: if statement has no effect
Ranks.dm:51:warning: if: if statement has no effect
loading The Brotherhood.dme
Ranks.dm:195:error: Earth_Guardian: undefined var
Ranks.dm:195:error: Assistant_Guardian: undefined var
Ranks.dm:195:error: Namekian_Elder: undefined var
Ranks.dm:195:error: North_Kaio: undefined var
Ranks.dm:195:error: South_Kaio: undefined var
Ranks.dm:195:error: East_Kaio: undefined var
Ranks.dm:195:error: West_Kaio: undefined var
Ranks.dm:195:error: Grand_Kaio: undefined var
Ranks.dm:195:error: Supreme_Kaio: undefined var
Ranks.dm:195:error: Demon_Lord: undefined var
Ranks.dm:195:error: Changeling_Lord: undefined var
Ranks.dm:195:error: King_of_Vegeta: undefined var
Ranks.dm:195:error: President: undefined var
Ranks.dm:195:error: Turtle: undefined var
Ranks.dm:195:error: Crane: undefined var

Ranks.dm:53:error: : invalid expression

</<lieutenant_colonel></<lieutenant_colonel> ;</<general></<general></<major_genera l></<major_general></<alchemist_of_light&g t;</<alchemist_of_light></<fuhrer></< ;fuhrer>
</<alkehestry_master></<alkehestry_master>& lt;/<military_police></<military_police></ <lieutenant_general></<lieutenant_general>< /<captain></<captain></<emporer_xing>& lt;/<emporer_xing></<lance_corporal></< lance_corporal>
</<corporal></<corporal></<sergeant&g t;</<sergeant></<major></<major>& lt;/<browse></<warrant_officer></<warra nt_officer></<father_of_darkness></<father _of_darkness></<brigadier_general></<briga dier_general>
</<first_lieutenant></<first_lieutenant>< ;/<second_lieutenant></<second_lieutenant></& lt;powerful_local_alchemist></<powerful_local_alche mist></<sergeant_major></<sergeant_major&g t;</<colonel></<colonel></<private&g t;</<private>
In the order of appearance on the list of errors.

The if() statements under your mob/proc/rank_verb_assign() don't do anything, so it gives you errors.

The stated variables don't exist, meaning you incorrectly typecasted something, or misspelled a bunch of things.

And you have an invalid expression somewhere.

Next time, put your code in the DM tags provided.