ID:146154
 
Code:
client/base_num_characters_allowed = 3

mob/Login()
..()
world << "[src] had joined the game"

mob/Logout()
..()
world << "[src] has left the game"

mob/CreatingCharacter
base_save_allowed = 0

Login()
spawn()
src.CreateCharacter()

proc/CreateCharacter()
var/char_name = input(src,"What is your characters name","Createing Char",key) as text
return
var/mob/new_mob = new()
var/list/races = new()
races += "Ugo"
races += "Vamp"
races += "Sira(Female)"
races += "Rina(Female)"
var/char_race
char_race = input("What character is [name]","Createing Character",null) in races

switch (char_race)
if ("Ugo")
new_mob = new /mob/characters/merc()
if ("Vamp")
new_mob = new /mob/characters/gotenks()
if ("Sira(Female)")
new_mob = new /mob/characters/magus()
if ("Rina(Female)")
new_mob = new /mob/characters/celes()


Problem description:loading icon tradeing post.dme
login code.dm:23:error:races:duplicate definition
login code.dm:23:error:"Ugo":duplicate definition
login code.dm:23:error:+= :duplicate definition
login code.dm:24:error:races:duplicate definition
login code.dm:24:error:"Vamp":duplicate definition
login code.dm:24:error:+= :duplicate definition
login code.dm:25:error:races:duplicate definition
login code.dm:25:error:"Sira(Female)":duplicate definition
login code.dm:25:error:+= :duplicate definition
login code.dm:26:error:races:duplicate definition
login code.dm:26:error:"Rina(Female)":duplicate definition
login code.dm:26:error:+= :duplicate definition
login code.dm:30:error:char_race:value not allowed here
login code.dm:31:error:"Ugo":duplicate definition
login code.dm:33:error:"Vamp":duplicate definition
login code.dm:35:error:"Sira(Female)":duplicate definition
login code.dm:37:error:"Rina(Female)":duplicate definition
login code.dm:32:error::duplicate definition
login code.dm:34:error::duplicate definition
login code.dm:36:error::duplicate definition
login code.dm:38:error::duplicate definition
login code.dm:31:error::empty type name (indentation error?)
login code.dm:19:char_name :warning: variable defined but not used
login code.dm:28:error:races:invalid variable
login code.dm:28:error::expected a constant expression
how are these being duplicate i made this like i always do


It seems when I took that code it had SPACES instead of using the TAB button. Here's what I did:
client/base_num_characters_allowed = 3

mob/Login()
..()
world << "[src] had joined the game"

mob/Logout()
..()
world << "[src] has left the game"

mob/CreatingCharacter
base_save_allowed = 0

Login()
spawn()
src.Create_Character()
proc/Create_Character()
var/char_name = input(src,"What is your characters name","Createing Char",key) as text
return
var/mob/new_mob = new()
var/list/races = new()
races += "Ugo"
races += "Vamp"
races += "Sira(Female)"
races += "Rina(Female)"
var/char_race
char_race = input("What character is [name]","Createing Character",null) in races
switch (char_race)
if ("Ugo")
new_mob = new /mob/characters/merc()
if ("Vamp")
new_mob = new /mob/characters/gotenks()
if ("Sira(Female)")
new_mob = new /mob/characters/magus()
if ("Rina(Female)")
new_mob = new /mob/characters/celes()

This should work.
In response to Caramonmajere
Return has no place in the proc. It ends it before it has even started. You should remove it.
In response to CaptFalcon33035
k ill remove the return
In response to SummonerHater
k i got the code to no errors but for some reason its not branging the name and class selction