ID:178457
 
man i gatta be the worst coder EVER!

well heres my problem.

mob
login
if(src.key == "Redslash")
switch(input("What char Sire?")in list("Geomancer","FighterMage","Troop")
if("Geomancer")
character = new /mob/RSsGeomancer(locate(/area/start))
if("FighterMage")
character = new /mob/RSsFighterMage(locate(/area/start))
if("Troop")
character = new /mob/RSsTroop(locate(/area/start))

loading Final Fantasy.dme
Final Fantasy.dm:154:error: if: missing comma ',' or right-paren ')'
Final Fantasy.dme:19:error: unbalanced }

Final Fantasy.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)
switch(input("What char Sire?")in list("Geomancer","FighterMage","Troop")<font color=yellow>)</font>

You were missing a close paren.
mob/Login()


I think thats what you were missing
In response to Sariat
Sariat wrote:
mob/Login()


I think thats what you were missing

That would not have caused a compile error. It was a missing parenthesis.
In response to Skysaw
...more help please....

mob/Login()
if(src.key == "Redslash")
switch(input("What char Sire?")in list("Geomancer","FighterMage","Troop"))
if("Geomancer")
character = new /mob/RSsGeomancer(locate(/area/start))
if("FighterMage")
character = new /mob/RSsFighterMage(locate(/area/start))
if("Troop")
character = new /mob/RSsTroop(locate(/area/start))

loading Final Fantasy.dme
Final Fantasy.dm:154:error:character:undefined var
Final Fantasy.dm:156:error:character:undefined var
Final Fantasy.dm:158:error:character:undefined var

Final Fantasy.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)

In response to Redslash
Redslash wrote:
...more help please....

mob/Login()
if(src.key == "Redslash")
switch(input("What char Sire?")in list("Geomancer","FighterMage","Troop"))
if("Geomancer")
character = new /mob/RSsGeomancer(locate(/area/start))
if("FighterMage")
character = new /mob/RSsFighterMage(locate(/area/start))
if("Troop")
character = new /mob/RSsTroop(locate(/area/start))

loading Final Fantasy.dme
Final Fantasy.dm:154:error:character:undefined var
Final Fantasy.dm:156:error:character:undefined var
Final Fantasy.dm:158:error:character:undefined var

Final Fantasy.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)


mob/Login()
if(src.key == "Redslash")
var/mob/character
switch(input("What char Sire?")in list("Geomancer","FighterMage","Troop"))
if("Geomancer")
character = new /mob/RSsGeomancer(locate(/area/start))
if("FighterMage")
character = new /mob/RSsFighterMage(locate(/area/start))
if("Troop")
character = new /mob/RSsTroop(locate(/area/start))
src.client.mob = character


You needed a "var" to define your undefined character error.

--Lee
In response to Mellifluous
Thank you Lee! your code worked!
In response to Redslash
Redslash wrote:
Thank you Lee! your code worked!

^_^

Glad to have helped you mate.

--Lee