ID:263987
 
Code: ok, i'm trying to remake my old game but I need help with this code, I have 6 inconstant indentations(EDIT:I'm not done with the code...just need this part fixed first,The inconstant indentations are at if("trainer"),and the 3 other codes below it. )
mob
Login()
switch(input("Do you wish to continue, or Create a new Character?", "Load") in list("Continue", "New"))
if("Continue")
if(fexists("Players/[usr.ckey].sav"))
src.Load()
world << "<b><font color=red></b>[src.name]([src.key]) has just logged into the game!"
if(src.admin == 1)
src.verbs += typesof(/mob/admin/verb)
else
alert(src,"You do not have a savefile!","ERROR")
src.Login() //log them in to restart the switch statement
if("New")
if(fexists("Players/[usr.ckey].sav")) //delete the savefile if they have one
fdel("Players/[usr.ckey].sav")

src.name = input("What do you want your name to be?", "Name") as text
if(src.name == "")
src.Login()
else
world << "<font color=red>'[src.name]' has just entered 'Pokemon Lightning Yellow Reborn'"
switch(input("Would you like to be a Trainer or a Pokemon?", "Trainer or Pokemon") in list("Trainer", "Pokemon"))

if("Trainer")
switch(input("Which Trainer do you wish to play as?", "Trainer") in list("Pikachu", "Charmander"))

if("Pokemon")
switch(input("Which Pokemon do you wish to be?", "Pokemon") in list("Pikachu", "Charmander", "Bulbasaur", "Squirtle", "Eevee", "Pidgeot", "Treecko", "Torchic", "Mudkip", "None"))

if("Pikachu")
src.icon = 'pikachu.dmi'
src.icon_state = "pikachu"
if("Charmander")
src.icon = 'char.dmi'
src.icon_state = "char"
if("Bulbasaur")
src.icon = 'bulba.dmi'
src.icon_state = "bulba"
if("Squirtle")
src.icon = 'squirtle.dmi'
src.icon_state = "squirtle"
if("Eevee")
src.icon = 'eevee.dmi'
src.icon_state = "eevee"
if("Pidgeot")
src.icon = 'geot.dmi'
src.icon_state = "geot"
if("Treecko")
src.icon = 'tree.dmi'
src.icon_state = "tree"
if("Torchic")
src.icon = 'tor.dmi'
src.icon_state = "tor"
if("Mudkip")
src.icon = 'mudkip.dmi'
src.icon_state = "mudkip"
if("None")
src.Logout()

if(src.key == "Element Her creator")
src.verbs += typesof(/mob/admin/verb)
src.admin = 1
else if(src.key == "")
src.verbs += typesof(/mob/admin/verb)
src.admin = 1
else if(src.key == "Commander_ACE")
src.verbs += typesof(/mob/admin/verb)
src.admin = 1

..()

Logout()
world << "'[src.name]' has left '[world.name]'"
src.Save()
del(src)
..()


Problem description:Heres the problem(look down)

                      if("Trainer")
switch(input("Which Trainer do you wish to play as?", "Trainer") in list("Pikachu", "Charmander"))

if("Pokemon")
switch(input("Which Pokemon do you wish to be?", "Pokemon") in list("Pikachu", "Charmander", "Bulbasaur", "Squirtle", "Eevee", "Pidgeot", "Treecko", "Torchic", "Mudkip", "None"))
Someone please help
Try like this remove
..()
from your above code.
In response to Element Hero creator
it could have been much easier to fix the problem if you could have pointed the lines it was showing errors on.
In response to Hardik
ok I posted it,the code problems are at the if("trainer) and the 3 lines below it.
In response to Hardik
Someone please help..