ID:149097
 
mob
var/Team=""
Login()
..()
switch(input("Capture or Elimination?","modes")in list("Capture","Elimination"))
if("Capture") mode = "flag"
new/obj/flagb
new/obj/flagr
if("Elimination") mode = "elimination"
switch(input("What team would you like to be on?","Team") in list("Red","blue"))
if("Red")
src <<"Good Choice!"
world <<"[src] is on the red team!"
src.loc=locate(30,30,2)
icon='Player.dmi'
icon_state="red"
if("blue")
src <<"Good Choice!"
world <<"[src] is on the blue team!"
src.loc=locate(1,1,2)
icon='Player.dmi'
icon_state="blue"
usr.blue+=1

Todays lucky error says:expected "if" or "else"
Make the text bold one the line where it says that
In response to DBZ Kidd (#1)
new/obj/flagb
You gotta be more specific if you need help, try reposting the code with the exact error and make the line the error is on bold.
In response to Stimulus (#3)
Well maybe trying looking down would help.
Either try adding () after the new/obj/flagb or enter the mode="" and tab it right, or do both.
In response to DBZ Kidd (#5)
mob
var/Team=""
Login()
..()
switch(input("Capture or Elimination?","modes")in list("Capture","Elimination"))
if("Capture")
mode = "flag"
new/obj/flagb("x,y,z")
new/obj/flagr("x,y,z")
if("Elimination") mode = "elimination"
switch(input("What team would you like to be on?","Team") in list("Red","blue"))
if("Red")
src <<"Good Choice!"
world <<"[src] is on the red team!"
src.loc=locate(30,30,2)
icon='Player.dmi'
icon_state="red"
if("blue")
src <<"Good Choice!"
world <<"[src] is on the blue team!"
src.loc=locate(1,1,2)
icon='Player.dmi'
icon_state="blue"
usr.blue+=1

No errors it just doesnt create the flags
In response to Soccerguy13 (#6)
mob
var/Team=""
Login()
..()
switch(input("Capture or Elimination?","modes")in list("Capture","Elimination"))
if("Capture")
mode = "flag"
new/obj/flagblocate(x,y,z))
new/obj/flagr(locate(x,y,z))

if("Elimination") mode = "elimination"
switch(input("What team would you like to be on?","Team") in list("Red","blue"))
if("Red")
src <<"Good Choice!"
world <<"[src] is on the red team!"
src.loc=locate(30,30,2)
icon='Player.dmi'
icon_state="red"
if("blue")
src <<"Good Choice!"
world <<"[src] is on the blue team!"
src.loc=locate(1,1,2)
icon='Player.dmi'
icon_state="blue"
usr.blue+=1<DM>